creddit/db/migrate/20150710040354_create_user_sessions.rb

14 lines
306 B
Ruby
Raw Permalink Normal View History

2015-07-10 00:19:01 -04:00
class CreateUserSessions < ActiveRecord::Migration
def change
create_table :user_sessions do |t|
t.references :user, index: true, foreign_key: true
t.string :key
t.string :user_agent
t.string :ip
t.datetime :accessed_at
t.timestamps null: false
end
end
end