1 2 3 4 5 6 7 8 9 10 11
class AddCensorRulesIndices < ActiveRecord::Migration def self.up add_index :censor_rules, :info_request_id add_index :censor_rules, :user_id add_index :censor_rules, :public_body_id end def self.down raise "no down" end end