diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb b/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb deleted file mode 100644 index ca220a5f23..0000000000 --- a/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +++ /dev/null @@ -1,16 +0,0 @@ -class <%= class_name %> < ActiveRecord::Migration - def self.up - create_table :<%= session_table_name %> do |t| - t.string :session_id, :null => false - t.text :data - t.timestamps - end - - add_index :<%= session_table_name %>, :session_id - add_index :<%= session_table_name %>, :updated_at - end - - def self.down - drop_table :<%= session_table_name %> - end -end |