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:
parent
5589c734a8
commit
d54406271b
@ -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 @@ def self.up
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user