Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use change in place of up and down in sessions table migration

  • Loading branch information...
commit 995ea00328932ebb568ce925bb84e84ca98b489b 1 parent 2fd7ea9
@vijaydev vijaydev authored
View
6 activerecord/lib/rails/generators/active_record/session_migration/templates/migration.rb
@@ -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 @@ def up
add_index :<%= session_table_name %>, :session_id
add_index :<%= session_table_name %>, :updated_at
end
-
- def down
- drop_table :<%= session_table_name %>
- end
end
Please sign in to comment.
Something went wrong with that request. Please try again.