mirror of
https://github.com/github/rails.git
synced 2026-01-29 16:28:09 -05:00
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
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* session_migration generator adds an index on updated_at. #6207 [grg]
|
||||
|
||||
* script/server creates the tmp/pids directory. #6204 [jonathan]
|
||||
|
||||
* Fix script/console --sandbox for internal transactions changes. #5738 [chris@octopod.info, charles.gerungan@gmail.com]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user