Home
Classes
Methods
Table of Contents
Active Record Belongs To Association
Active Record Belongs To Polymorphic Association
Active Record Has And Belongs To Many Association
Active Record Has Many Association
Active Record Has Many Through Association
Active Record Belongs To Has One Association
Active Record Has One Through Association
Active Record Through Association
Defined In
lib/active_record/associations.rb
lib/active_record/associations/alias_tracker.rb
lib/active_record/associations/association.rb
lib/active_record/associations/association_scope.rb
lib/active_record/associations/belongs_to_association.rb
lib/active_record/associations/belongs_to_polymorphic_association.rb
lib/active_record/associations/builder/association.rb
lib/active_record/associations/builder/belongs_to.rb
lib/active_record/associations/builder/collection_association.rb
lib/active_record/associations/builder/has_and_belongs_to_many.rb
lib/active_record/associations/builder/has_many.rb
lib/active_record/associations/builder/has_one.rb
lib/active_record/associations/builder/singular_association.rb
lib/active_record/associations/collection_association.rb
lib/active_record/associations/collection_proxy.rb
lib/active_record/associations/has_and_belongs_to_many_association.rb
lib/active_record/associations/has_many_association.rb
lib/active_record/associations/has_many_through_association.rb
lib/active_record/associations/has_one_association.rb
lib/active_record/associations/has_one_through_association.rb
lib/active_record/associations/join_dependency.rb
lib/active_record/associations/join_dependency/join_association.rb
lib/active_record/associations/join_dependency/join_base.rb
lib/active_record/associations/join_dependency/join_part.rb
lib/active_record/associations/join_helper.rb
lib/active_record/associations/preloader.rb
lib/active_record/associations/preloader/association.rb
lib/active_record/associations/preloader/belongs_to.rb
lib/active_record/associations/preloader/collection_association.rb
lib/active_record/associations/preloader/has_and_belongs_to_many.rb
lib/active_record/associations/preloader/has_many.rb
lib/active_record/associations/preloader/has_many_through.rb
lib/active_record/associations/preloader/has_one.rb
lib/active_record/associations/preloader/has_one_through.rb
lib/active_record/associations/preloader/singular_association.rb
lib/active_record/associations/preloader/through_association.rb
lib/active_record/associations/singular_association.rb
lib/active_record/associations/through_association.rb
lib/active_record/autosave_association.rb
lib/active_record/reflection.rb
lib/active_record/relation.rb
lib/active_record/relation/finder_methods.rb
lib/active_record/relation/merger.rb
lib/active_record/relation/query_methods.rb
Pages
README
databases.rake
Class and Module Index
ActiveRecord
ActiveRecord::ActiveRecordError
ActiveRecord::AdapterNotFound
ActiveRecord::AdapterNotSpecified
ActiveRecord::Aggregations
ActiveRecord::Aggregations::ClassMethods
ActiveRecord::AssociationRelation
ActiveRecord::AssociationTypeMismatch
ActiveRecord::Associations
ActiveRecord::Associations::AliasTracker
ActiveRecord::Associations::Association
ActiveRecord::Associations::AssociationScope
ActiveRecord::Associations::BelongsToAssociation
ActiveRecord::Associations::BelongsToPolymorphicAssociation
ActiveRecord::Associations::Builder
ActiveRecord::Associations::Builder::Association
ActiveRecord::Associations::Builder::BelongsTo
ActiveRecord::Associations::Builder::CollectionAssociation
ActiveRecord::Associations::Builder::HasAndBelongsToMany
ActiveRecord::Associations::Builder::HasMany
ActiveRecord::Associations::Builder::HasOne
ActiveRecord::Associations::Builder::SingularAssociation
ActiveRecord::Associations::ClassMethods
ActiveRecord::Associations::CollectionAssociation
ActiveRecord::Associations::CollectionProxy
ActiveRecord::Associations::HasAndBelongsToManyAssociation
ActiveRecord::Associations::HasManyAssociation
ActiveRecord::Associations::HasManyThroughAssociation
ActiveRecord::Associations::HasOneAssociation
ActiveRecord::Associations::HasOneThroughAssociation
ActiveRecord::Associations::JoinDependency
ActiveRecord::Associations::JoinDependency::JoinAssociation
ActiveRecord::Associations::JoinDependency::JoinBase
ActiveRecord::Associations::JoinDependency::JoinPart
ActiveRecord::Associations::JoinHelper
ActiveRecord::Associations::Preloader
ActiveRecord::Associations::Preloader::Association
ActiveRecord::Associations::Preloader::BelongsTo
ActiveRecord::Associations::Preloader::CollectionAssociation
ActiveRecord::Associations::Preloader::HasAndBelongsToMany
ActiveRecord::Associations::Preloader::HasMany
ActiveRecord::Associations::Preloader::HasManyThrough
ActiveRecord::Associations::Preloader::HasOne
ActiveRecord::Associations::Preloader::HasOneThrough
ActiveRecord::Associations::Preloader::SingularAssociation
ActiveRecord::Associations::Preloader::ThroughAssociation
ActiveRecord::Associations::SingularAssociation
ActiveRecord::Associations::ThroughAssociation
ActiveRecord::AttributeAssignment
ActiveRecord::AttributeAssignment::MultiparameterAttribute
ActiveRecord::AttributeAssignmentError
ActiveRecord::AttributeMethods
ActiveRecord::AttributeMethods::BeforeTypeCast
ActiveRecord::AttributeMethods::ClassMethods
ActiveRecord::AttributeMethods::Dirty
ActiveRecord::AttributeMethods::Dirty::ActiveSupport
ActiveRecord::AttributeMethods::PrimaryKey
ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods
ActiveRecord::AttributeMethods::Query
ActiveRecord::AttributeMethods::Read
ActiveRecord::AttributeMethods::Read::ClassMethods
ActiveRecord::AttributeMethods::Serialization
ActiveRecord::AttributeMethods::Serialization::Attribute
ActiveRecord::AttributeMethods::Serialization::Behavior
ActiveRecord::AttributeMethods::Serialization::Behavior::ClassMethods
ActiveRecord::AttributeMethods::Serialization::ClassMethods
ActiveRecord::AttributeMethods::Serialization::Type
ActiveRecord::AttributeMethods::TimeZoneConversion
ActiveRecord::AttributeMethods::TimeZoneConversion::ClassMethods
ActiveRecord::AttributeMethods::TimeZoneConversion::Type
ActiveRecord::AttributeMethods::Write
ActiveRecord::AttributeMethods::Write::ClassMethods
ActiveRecord::AutosaveAssociation
ActiveRecord::AutosaveAssociation::AssociationBuilderExtension
ActiveRecord::AutosaveAssociation::ClassMethods
ActiveRecord::Base
ActiveRecord::Batches
ActiveRecord::Calculations
ActiveRecord::Callbacks
ActiveRecord::Callbacks::ClassMethods
ActiveRecord::Coders
ActiveRecord::Coders::YAMLColumn
ActiveRecord::ConfigurationError
ActiveRecord::ConnectionAdapters::AbstractAdapter
ActiveRecord::ConnectionAdapters::AbstractAdapter::SchemaCreation
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::BindSubstitution
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::Column
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::SchemaCreation
ActiveRecord::ConnectionAdapters::AlterTable
ActiveRecord::ConnectionAdapters::ClosedTransaction
ActiveRecord::ConnectionAdapters::ColumnDefinition
ActiveRecord::ConnectionAdapters::ColumnDumper
ActiveRecord::ConnectionAdapters::ConnectionHandler
ActiveRecord::ConnectionAdapters::ConnectionManagement
ActiveRecord::ConnectionAdapters::ConnectionPool
ActiveRecord::ConnectionAdapters::ConnectionPool::Queue
ActiveRecord::ConnectionAdapters::ConnectionPool::Reaper
ActiveRecord::ConnectionAdapters::ConnectionSpecification
ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver
ActiveRecord::ConnectionAdapters::DatabaseLimits
ActiveRecord::ConnectionAdapters::DatabaseStatements
ActiveRecord::ConnectionAdapters::IndexDefinition
ActiveRecord::ConnectionAdapters::Mysql2Adapter
ActiveRecord::ConnectionAdapters::Mysql2Adapter::Column
ActiveRecord::ConnectionAdapters::Mysql2Adapter::ExplainPrettyPrinter
ActiveRecord::ConnectionAdapters::MysqlAdapter
ActiveRecord::ConnectionAdapters::MysqlAdapter::Column
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Boolean
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Date
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::DateTime
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Decimal
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Float
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Identity
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Integer
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Time
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Type
ActiveRecord::ConnectionAdapters::MysqlAdapter::StatementPool
ActiveRecord::ConnectionAdapters::OpenTransaction
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::BindSubstitution
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ColumnDefinition
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ColumnMethods
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::DatabaseStatements
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::DatabaseStatements::ExplainPrettyPrinter
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Array
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Bit
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Boolean
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Bytea
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Cidr
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Date
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Decimal
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Float
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Hstore
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Identity
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Integer
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Json
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Money
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Point
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Range
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Time
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Timestamp
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Type
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::TypeMap
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Vector
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Quoting
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ReferentialIntegrity
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::SchemaCreation
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::SchemaStatements
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Table
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Utils
ActiveRecord::ConnectionAdapters::PostgreSQLColumn
ActiveRecord::ConnectionAdapters::PostgreSQLColumn::ArrayParser
ActiveRecord::ConnectionAdapters::PostgreSQLColumn::Cast
ActiveRecord::ConnectionAdapters::QueryCache
ActiveRecord::ConnectionAdapters::Quoting
ActiveRecord::ConnectionAdapters::RealTransaction
ActiveRecord::ConnectionAdapters::SQLite3Adapter
ActiveRecord::ConnectionAdapters::SQLite3Adapter::BindSubstitution
ActiveRecord::ConnectionAdapters::SQLite3Adapter::ExplainPrettyPrinter
ActiveRecord::ConnectionAdapters::SQLite3Adapter::StatementPool
ActiveRecord::ConnectionAdapters::SQLite3Adapter::Version
ActiveRecord::ConnectionAdapters::SQLite3Column
ActiveRecord::ConnectionAdapters::SavepointTransaction
ActiveRecord::ConnectionAdapters::SchemaCache
ActiveRecord::ConnectionAdapters::SchemaStatements
ActiveRecord::ConnectionAdapters::StatementPool
ActiveRecord::ConnectionAdapters::Table
ActiveRecord::ConnectionAdapters::TableDefinition
ActiveRecord::ConnectionAdapters::Transaction
ActiveRecord::ConnectionAdapters::TransactionState
ActiveRecord::ConnectionHandling
ActiveRecord::ConnectionNotEstablished
ActiveRecord::ConnectionTimeoutError
ActiveRecord::Core
ActiveRecord::Core::ClassMethods
ActiveRecord::CounterCache
ActiveRecord::CounterCache::ClassMethods
ActiveRecord::DangerousAttributeError
ActiveRecord::Delegation
ActiveRecord::Delegation::ClassMethods
ActiveRecord::Delegation::ClassMethods::ThreadSafe
ActiveRecord::Delegation::ClassSpecificRelation
ActiveRecord::Delegation::ClassSpecificRelation::ClassMethods
ActiveRecord::DeleteRestrictionError
ActiveRecord::DuplicateMigrationNameError
ActiveRecord::DuplicateMigrationVersionError
ActiveRecord::DynamicMatchers
ActiveRecord::DynamicMatchers::FindBy
ActiveRecord::DynamicMatchers::FindByBang
ActiveRecord::DynamicMatchers::Finder
ActiveRecord::DynamicMatchers::Method
ActiveRecord::EagerLoadPolymorphicError
ActiveRecord::Explain
ActiveRecord::ExplainRegistry
ActiveRecord::ExplainSubscriber
ActiveRecord::ExplainSubscriber::ActiveSupport
ActiveRecord::FinderMethods
ActiveRecord::Fixture
ActiveRecord::Fixture::FixtureError
ActiveRecord::Fixture::FormatError
ActiveRecord::FixtureClassNotFound
ActiveRecord::FixtureSet
ActiveRecord::FixtureSet::File
ActiveRecord::Generators
ActiveRecord::Generators::Base
ActiveRecord::Generators::MigrationGenerator
ActiveRecord::Generators::ModelGenerator
ActiveRecord::HasAndBelongsToManyAssociationForeignKeyNeeded
ActiveRecord::HasManyThroughAssociationNotFoundError
ActiveRecord::HasManyThroughAssociationPointlessSourceTypeError
ActiveRecord::HasManyThroughAssociationPolymorphicSourceError
ActiveRecord::HasManyThroughAssociationPolymorphicThroughError
ActiveRecord::HasManyThroughCantAssociateNewRecords
ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection
ActiveRecord::HasManyThroughCantDissociateNewRecords
ActiveRecord::HasManyThroughNestedAssociationsAreReadonly
ActiveRecord::HasManyThroughSourceAssociationNotFoundError
ActiveRecord::HasOneThroughCantAssociateThroughCollection
ActiveRecord::IllegalMigrationNameError
ActiveRecord::ImmutableRelation
ActiveRecord::Inheritance
ActiveRecord::Inheritance::ClassMethods
ActiveRecord::Integration
ActiveRecord::InvalidForeignKey
ActiveRecord::InverseOfAssociationNotFoundError
ActiveRecord::IrreversibleMigration
ActiveRecord::Locking
ActiveRecord::Locking::Optimistic
ActiveRecord::Locking::Optimistic::ClassMethods
ActiveRecord::Locking::Pessimistic
ActiveRecord::LogSubscriber
ActiveRecord::Migration
ActiveRecord::Migration::CheckPending
ActiveRecord::Migration::CommandRecorder
ActiveRecord::Migration::CommandRecorder::StraightReversions
ActiveRecord::Migration::JoinTable
ActiveRecord::Migration::ReversibleBlockHelper
ActiveRecord::MigrationProxy
ActiveRecord::Migrator
ActiveRecord::ModelSchema
ActiveRecord::ModelSchema::ClassMethods
ActiveRecord::MultiparameterAssignmentErrors
ActiveRecord::NestedAttributes
ActiveRecord::NestedAttributes::ClassMethods
ActiveRecord::NestedAttributes::TooManyRecords
ActiveRecord::NullMigration
ActiveRecord::NullRelation
ActiveRecord::PendingMigrationError
ActiveRecord::Persistence
ActiveRecord::Persistence::ClassMethods
ActiveRecord::PredicateBuilder
ActiveRecord::PreparedStatementInvalid
ActiveRecord::QueryCache
ActiveRecord::QueryCache::ClassMethods
ActiveRecord::QueryMethods
ActiveRecord::QueryMethods::WhereChain
ActiveRecord::Querying
ActiveRecord::Railtie
ActiveRecord::Railtie::ActionDispatch
ActiveRecord::Railtie::ActiveSupport
ActiveRecord::Railtie::Rails
ActiveRecord::Railties
ActiveRecord::Railties::ControllerRuntime
ActiveRecord::Railties::ControllerRuntime::ClassMethods
ActiveRecord::ReadOnlyAssociation
ActiveRecord::ReadOnlyRecord
ActiveRecord::ReadonlyAttributes
ActiveRecord::ReadonlyAttributes::ClassMethods
ActiveRecord::RecordInvalid
ActiveRecord::RecordNotDestroyed
ActiveRecord::RecordNotFound
ActiveRecord::RecordNotSaved
ActiveRecord::RecordNotUnique
ActiveRecord::Reflection
ActiveRecord::Reflection::AggregateReflection
ActiveRecord::Reflection::AssociationReflection
ActiveRecord::Reflection::ClassMethods
ActiveRecord::Reflection::MacroReflection
ActiveRecord::Reflection::ThroughReflection
ActiveRecord::Relation
ActiveRecord::Relation::HashMerger
ActiveRecord::Relation::Merger
ActiveRecord::Result
ActiveRecord::Rollback
ActiveRecord::RuntimeRegistry
ActiveRecord::SQLCounter
ActiveRecord::Sanitization
ActiveRecord::Sanitization::ClassMethods
ActiveRecord::Schema
ActiveRecord::SchemaDumper
ActiveRecord::SchemaMigration
ActiveRecord::Scoping
ActiveRecord::Scoping::ClassMethods
ActiveRecord::Scoping::Default
ActiveRecord::Scoping::Default::ClassMethods
ActiveRecord::Scoping::Named
ActiveRecord::Scoping::Named::ClassMethods
ActiveRecord::Scoping::ScopeRegistry
ActiveRecord::Serialization
ActiveRecord::SerializationTypeMismatch
ActiveRecord::SpawnMethods
ActiveRecord::StaleObjectError
ActiveRecord::StatementCache
ActiveRecord::StatementInvalid
ActiveRecord::Store
ActiveRecord::Store::ClassMethods
ActiveRecord::Store::IndifferentCoder
ActiveRecord::SubclassNotFound
ActiveRecord::Tasks
ActiveRecord::Tasks::DatabaseAlreadyExists
ActiveRecord::Tasks::DatabaseNotSupported
ActiveRecord::Tasks::DatabaseTasks
ActiveRecord::Tasks::FirebirdDatabaseTasks
ActiveRecord::Tasks::MySQLDatabaseTasks
ActiveRecord::Tasks::OracleDatabaseTasks
ActiveRecord::Tasks::PostgreSQLDatabaseTasks
ActiveRecord::Tasks::SQLiteDatabaseTasks
ActiveRecord::Tasks::SqlserverDatabaseTasks
ActiveRecord::TestCase
ActiveRecord::TestFixtures
ActiveRecord::TestFixtures::ClassMethods
ActiveRecord::ThrowResult
ActiveRecord::Timestamp
ActiveRecord::TransactionIsolationError
ActiveRecord::Transactions
ActiveRecord::Transactions::ClassMethods
ActiveRecord::Transactions::TransactionError
ActiveRecord::Translation
ActiveRecord::UnknownAttributeError
ActiveRecord::UnknownMigrationVersionError
ActiveRecord::UnknownPrimaryKey
ActiveRecord::VERSION
ActiveRecord::Validations
ActiveRecord::Validations::AssociatedValidator
ActiveRecord::Validations::ClassMethods
ActiveRecord::Validations::PresenceValidator
ActiveRecord::Validations::UniquenessValidator
ActiveRecord::WrappedDatabaseException
ActiveRecord::XmlSerializer
ActiveRecord::XmlSerializer::Attribute
ActiveSupport
ArJdbcMySQL
ArJdbcMySQL::Error
Arel
Mysql
Mysql::Field
Mysql::Result
Mysql::Stmt
Mysql::Time
module ActiveRecord::Associations
Active Record Belongs To
Association
¶
↑
Active Record Belongs To Polymorphic
Association
¶
↑
Active Record Has And Belongs To Many
Association
¶
↑
Active Record Has Many
Association
¶
↑
Active Record Has Many Through
Association
¶
↑
Active Record Belongs To Has One
Association
¶
↑
Active Record Has One Through
Association
¶
↑
Active Record Through
Association
¶
↑