class CreateAacCategorizableCategoryTable
Public Class Methods
down()
click to toggle source
# File lib/generators/acts-as-categorizable/templates/relation_migration.rb, line 11 def self.down drop_table :aac_categorizable_category end
up()
click to toggle source
# File lib/generators/acts-as-categorizable/templates/relation_migration.rb, line 2 def self.up create_table :aac_categorizable_category do |t| t.references :categorizable, polymorphic: true t.references :category end add_index :aac_categorizable_category, [:categorizable_id, :category_id], name: 'aac_ref_ids' end