#primary_key(name, type = :primary_key, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 352
def primary_key(name, type = :primary_key, ** ) type = :integer if type == :primary_key super end
123456789_123456789_123456789_123456789_123456789_
Relationships & Source Files | |
Defined in: | activerecord/lib/active_record/migration/compatibility.rb |
Alias for #references.
Alias for #references.
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 360
alias :belongs_to :references
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 352
def primary_key(name, type = :primary_key, ** ) type = :integer if type == :primary_key super end
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 363
def ( ) end
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 357
def references(*args, ** ) super(*args, type: :integer, ** ) end