instance method
add_belongs_to
Ruby on Rails 6.1.7.10
Since v4.0.13Signature
add_belongs_to(table_name, ref_name, **options)
No documentation comment.
Parameters
-
table_namereq -
ref_namereq -
optionskeyrest
Alias for
ActiveRecord::ConnectionAdapters::SchemaStatements#add_reference
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements