2 changed files with 11 additions and 1 deletions
@ -0,0 +1,9 @@ |
|||
class AddCreationDayIndexToDiffs < ActiveRecord::Migration[5.2] |
|||
def up |
|||
add_index :diffs, "date_trunc('day', created_at) DESC", name: "diffs_creation_day_index" |
|||
end |
|||
|
|||
def down |
|||
remove_index :diffs, name: "diffs_creation_day_index" |
|||
end |
|||
end |
Loading…
Reference in new issue