]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20120328090602_drop_session_table.rb
Merge pull request #35 from tomhughes/routing
[rails.git] / db / migrate / 20120328090602_drop_session_table.rb
1 require 'migrate'
2
3 class DropSessionTable < ActiveRecord::Migration
4   def up
5     drop_table "sessions"
6   end
7
8   def down
9     create_table "sessions" do |t|
10       t.column "session_id", :string
11       t.column "data",       :text
12       t.column "created_at", :timestamp
13       t.column "updated_at", :timestamp
14     end
15     add_index "sessions", ["session_id"], :name => "sessions_session_id_idx", :unique => true
16   end
17 end