Class: ActiveRecord::Migration::Compatibility::V7_0

Inherits:
V7_1
  • Object
show all
Defined in:
activerecord/lib/active_record/migration/compatibility.rb

Direct Known Subclasses

V6_1

Defined Under Namespace

Modules: TableDefinition

Instance Method Summary collapse

Instance Method Details

#change_table(table_name, **options) ⇒ Object


50
51
52
53
54
55
56
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 50

def change_table(table_name, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end

#create_table(table_name, **options) ⇒ Object


42
43
44
45
46
47
48
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 42

def create_table(table_name, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end