Drop the sessions table
This commit is contained in:
parent
5cae983622
commit
19b6221b32
1 changed files with 17 additions and 0 deletions
17
db/migrate/20120328090602_drop_session_table.rb
Normal file
17
db/migrate/20120328090602_drop_session_table.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'migrate'
|
||||
|
||||
class DropSessionTable < ActiveRecord::Migration
|
||||
def up
|
||||
drop_table "sessions"
|
||||
end
|
||||
|
||||
def down
|
||||
create_table "sessions", :options => innodb_option do |t|
|
||||
t.column "session_id", :string
|
||||
t.column "data", :text
|
||||
t.column "created_at", :timestamp
|
||||
t.column "updated_at", :timestamp
|
||||
end
|
||||
add_index "sessions", ["session_id"], :name => "sessions_session_id_idx", :unique => true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue