tap/db/migrate/20150827155036_add_some_indexes_to_tables.rb

6 lines
147 B
Ruby

class AddSomeIndexesToTables < ActiveRecord::Migration
def change
add_index :orders, :created_at
add_index :orders, :cancelled
end
end