New index for posts table. interacted_at still missing
This commit is contained in:
parent
48571cae37
commit
4279d85776
1 changed files with 5 additions and 0 deletions
5
db/migrate/20120330144057_indexes_on_posts.rb
Normal file
5
db/migrate/20120330144057_indexes_on_posts.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class IndexesOnPosts < ActiveRecord::Migration
|
||||
def change
|
||||
add_index(:posts, [:id, :type, :created_at])
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue