15 lines
226 B
Ruby
15 lines
226 B
Ruby
class CreateSessions < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :sessions do |t|
|
|
t.integer :user_id
|
|
t.string :key
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :sessions
|
|
end
|
|
end
|