Skip to content
Browse files

Merge pull request #1380 from vijaydev/session_migration

Use 3.1 style migration for sessions table
  • Loading branch information...
2 parents a46b03e + 995ea00 commit a1b1f91e062c9f95ba2c4c3e4c8a38b4d6f948d4 @josevalim josevalim committed May 28, 2011
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

0 comments on commit a1b1f91

Please sign in to comment.
Something went wrong with that request. Please try again.