journalduhacker/db/migrate/20170413161450_add_indexes.rb
2017-05-23 10:16:30 +02:00

8 lines
182 B
Ruby

class AddIndexes < ActiveRecord::Migration
def change
add_index :votes, [ :comment_id ]
add_index :comments, [ :user_id ]
add_index :stories, [ :created_at ]
end
end