APIdock
/
Ruby on Rails
/
Browse
About
method
add_belongs_to
v5.2.3
-
Show latest stable
- Class:
ActiveRecord
::
Migration
::
Compatibility
::
V4_2
add_belongs_to
(*, **options)
public
Alias
for
ActiveRecord::Migration::Compatibility::V4_2#add_reference
Related methods
Instance methods
add_belongs_to
add_reference
add_timestamps
change_table
create_table
index_exists?
remove_index
Private methods
compatible_table_definition
index_name_for_remove