tap/db/migrate/20150827155036_add_some_indexes_to_tables.rb

7 lines
147 B
Ruby
Raw Normal View History

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