13 lines
279 B
Ruby
13 lines
279 B
Ruby
class CreateSessions < ActiveRecord::Migration
|
|
def change
|
|
create_table :sessions do |t|
|
|
t.string :session_id, :null => false
|
|
t.text :data
|
|
t.timestamps null: true
|
|
end
|
|
|
|
add_index :sessions, :session_id
|
|
add_index :sessions, :updated_at
|
|
end
|
|
end
|