APIdock / Ruby on Rails
/
Browse About
method

belongs_to

rails latest stable - Class: ActiveRecord::ConnectionAdapters::ColumnMethods::TableDefinition
belongs_to(*args, **options)
public

Alias for ActiveRecord::ConnectionAdapters::ColumnMethods::TableDefinition#references

Related methods

  • Instance methods
  • []
  • belongs_to
  • check_constraint
  • column
  • columns
  • foreign_key
  • index
  • new_check_constraint_definition
  • new_column_definition
  • new_foreign_key_definition
  • primary_keys
  • references
  • remove_column
  • set_primary_key
  • timestamps
  • Class methods
  • new
  • Private methods
  • privatealiased_types
  • privatecreate_column_definition
  • privateinteger_like_primary_key?
  • privateinteger_like_primary_key_type
  • privateraise_on_duplicate_column
  • privatevalid_column_definition_options
APIdock API Documentation Browser

Improve developer experience using DX Core 4 metrics in Swarmia.

© 2026 APIdock