]> git.openstreetmap.org Git - rails.git/blob - db/migrate/003_sql_session_store_setup.rb
Update to iD 1.1.4
[rails.git] / db / migrate / 003_sql_session_store_setup.rb
1 require 'migrate'
2
3 class SqlSessionStoreSetup < ActiveRecord::Migration
4   def self.up
5     create_table "sessions", :options => innodb_option do |t|
6       t.column "session_id", :string
7       t.column "data",       :text
8       t.column "created_at", :timestamp
9       t.column "updated_at", :timestamp
10     end
11     add_index "sessions", ["session_id"], :name => "sessions_session_id_idx", :unique => true
12   end
13
14   def self.down
15     drop_table "sessions"
16   end
17 end