This repository has been archived on 2024-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
redstoner.com/db/migrate/20140617183708_create_sessions.rb
2016-02-07 14:27:57 +01:00

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