Sha256: f930216860bd687764ec970137be81cc799905a1bc2831cf5d7b023bcb3e9538
Contents?: true
Size: 312 Bytes
Versions: 34
Compression:
Stored size: 312 Bytes
Contents
class AddMissingIndexesToComments < ActiveRecord::Migration def self.up add_index :comments, [:commented_id, :commented_type] add_index :comments, :author_id end def self.down remove_index :comments, :column => [:commented_id, :commented_type] remove_index :comments, :author_id end end
Version data entries
34 entries across 34 versions & 1 rubygems