diff --git a/db/migrate/001_add_sessions.rb b/db/migrate/001_add_sessions.rb new file mode 100644 index 0000000..22b4a00 --- /dev/null +++ b/db/migrate/001_add_sessions.rb @@ -0,0 +1,16 @@ +class AddSessions < ActiveRecord::Migration + def self.up + create_table :sessions do |t| + t.column :session_id, :string + t.column :data, :text + t.column :updated_at, :datetime + end + + add_index :sessions, :session_id + add_index :sessions, :updated_at + end + + def self.down + drop_table :sessions + end +end