mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
17 lines
311 B
Ruby
17 lines
311 B
Ruby
class AddSessionsTable < ActiveRecord::Migration[5.1]
|
|
def up
|
|
create_table :sessions do |t|
|
|
t.string :session_id, null: false
|
|
t.text :data
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :sessions, :session_id
|
|
add_index :sessions, :updated_at
|
|
end
|
|
|
|
def down
|
|
drop_table :sessions
|
|
end
|
|
end
|