diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/session_migration/templates')
-rw-r--r-- | railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb | 6 |
1 files changed, 3 insertions, 3 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 index ee46df4067..ca220a5f23 100644 --- a/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +++ b/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb @@ -1,9 +1,9 @@ class <%= class_name %> < ActiveRecord::Migration def self.up create_table :<%= session_table_name %> do |t| - t.column :session_id, :string - t.column :data, :text - t.column :updated_at, :datetime + t.string :session_id, :null => false + t.text :data + t.timestamps end add_index :<%= session_table_name %>, :session_id |