Module: ActiveRecord::ActsAs::Migration::Table

Includes:
TableDefinition
Included in:
ConnectionAdapters::Table
Defined in:
lib/active_record/acts_as/migration.rb

Instance Method Summary collapse

Methods included from TableDefinition

#actable

Instance Method Details

#remove_actable(**options) ⇒ Object



15
16
17
18
19
# File 'lib/active_record/acts_as/migration.rb', line 15

def remove_actable(**options)
  name = options.delete(:as) || :actable
  options[:polymorphic] = true
  @base.remove_reference(@name, name, **options)
end