creddit/db/migrate/20150710040354_create_user_sessions.rb
2015-07-10 14:33:39 -04:00

13 lines
306 B
Ruby

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