Module: ActiveRecord::Migration::Compatibility::V5_0::TableDefinition

Defined in:
lib/active_record/migration/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#primary_key(name, type = :primary_key, **options) ⇒ Object



330
331
332
333
# File 'lib/active_record/migration/compatibility.rb', line 330

def primary_key(name, type = :primary_key, **options)
  type = :integer if type == :primary_key
  super
end

#references(*args, **options) ⇒ Object Also known as: belongs_to



335
336
337
# File 'lib/active_record/migration/compatibility.rb', line 335

def references(*args, **options)
  super(*args, type: :integer, **options)
end