diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-13 23:35:55 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-13 23:35:55 +0000 |
commit | d54406271b0b38614035e08c611fbae048b60ec3 (patch) | |
tree | 5985e442a73478185e7d0d5c3dc022f1e0d17236 /railties/lib/rails_generator/generators/components | |
parent | 5589c734a87080f6a47ec2ab00797cd4ee4d9aee (diff) | |
download | rails-d54406271b0b38614035e08c611fbae048b60ec3.tar.gz rails-d54406271b0b38614035e08c611fbae048b60ec3.tar.bz2 rails-d54406271b0b38614035e08c611fbae048b60ec3.zip |
session_migration generator adds an index on updated_at. Closes #6207.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components')
-rw-r--r-- | railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb | 3 |
1 files changed, 2 insertions, 1 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 c76bd8dde4..ee46df4067 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 @@ -5,8 +5,9 @@ class <%= class_name %> < ActiveRecord::Migration t.column :data, :text t.column :updated_at, :datetime end - + add_index :<%= session_table_name %>, :session_id + add_index :<%= session_table_name %>, :updated_at end def self.down |