instance method
add_belongs_to
Ruby on Rails 5.0.7.2
Since v4.0.13Signature
add_belongs_to(table_name, *args)
No documentation comment.
Parameters
-
table_namereq -
argsrest
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