mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use change in place of up and down in sessions table migration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class <%= migration_class_name %> < ActiveRecord::Migration
|
||||
def up
|
||||
def change
|
||||
create_table :<%= session_table_name %> do |t|
|
||||
t.string :session_id, :null => false
|
||||
t.text :data
|
||||
@@ -9,8 +9,4 @@ class <%= migration_class_name %> < ActiveRecord::Migration
|
||||
add_index :<%= session_table_name %>, :session_id
|
||||
add_index :<%= session_table_name %>, :updated_at
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :<%= session_table_name %>
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user