diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-05 02:42:57 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-05 02:42:57 +0000 |
commit | 6204a52facf97ac741f61decf773c01494245f02 (patch) | |
tree | 8af7718cff56aee43d8f551ddeaa0ba4549cbe61 /railties/lib/rails_generator | |
parent | 1b32a305df40829c650a5254441eaec491e9f086 (diff) | |
download | rails-6204a52facf97ac741f61decf773c01494245f02.tar.gz rails-6204a52facf97ac741f61decf773c01494245f02.tar.bz2 rails-6204a52facf97ac741f61decf773c01494245f02.zip |
Sexy migrations for the session_migration generator. Closes #8561.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6938 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-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 |