foodsoft/db/migrate/20120512211613_add_order_indexes.rb
2020-09-05 14:40:11 +02:00

11 lines
322 B
Ruby

class AddOrderIndexes < ActiveRecord::Migration[4.2]
def self.up
add_index :group_order_articles, :group_order_id
add_index :group_order_articles, :order_article_id
end
def self.down
remove_index :group_order_articles, :group_order_id
remove_index :group_order_articles, :order_article_id
end
end