Module: ActiveRecord::Migration::Compatibility::V5_0::TableDefinition
- Defined in:
 - lib/active_record/migration/compatibility.rb
 
Instance Method Summary collapse
- #primary_key(name, type = :primary_key, **options) ⇒ Object
 - #references(*args, **options) ⇒ Object (also: #belongs_to)
 
Instance Method Details
#primary_key(name, type = :primary_key, **options) ⇒ Object
      111 112 113 114  | 
    
      # File 'lib/active_record/migration/compatibility.rb', line 111 def primary_key(name, type = :primary_key, **) type = :integer if type == :primary_key super end  | 
  
#references(*args, **options) ⇒ Object Also known as: belongs_to
      116 117 118  | 
    
      # File 'lib/active_record/migration/compatibility.rb', line 116 def references(*args, **) super(*args, type: :integer, **) end  |