]> git.openstreetmap.org Git - rails.git/blob - db/migrate/003_sql_session_store_setup.rb
Merge remote-tracking branch 'upstream/pull/3469'
[rails.git] / db / migrate / 003_sql_session_store_setup.rb
1 class SqlSessionStoreSetup < ActiveRecord::Migration[4.2]
2   def self.up
3     create_table "sessions" do |t|
4       t.column "session_id", :string
5       t.column "data",       :text
6       t.column "created_at", :timestamp
7       t.column "updated_at", :timestamp
8     end
9     add_index "sessions", ["session_id"], :name => "sessions_session_id_idx", :unique => true
10   end
11
12   def self.down
13     drop_table "sessions"
14   end
15 end