Namespace
- MODULE ActiveRecord::Aggregations
- MODULE ActiveRecord::Associations
- MODULE ActiveRecord::AttributeAssignment
- MODULE ActiveRecord::AttributeMethods
- MODULE ActiveRecord::Attributes
- MODULE ActiveRecord::AutosaveAssociation
- MODULE ActiveRecord::Batches
- MODULE ActiveRecord::Calculations
- MODULE ActiveRecord::Callbacks
- MODULE ActiveRecord::CollectionCacheKey
- MODULE ActiveRecord::ConnectionAdapters
- MODULE ActiveRecord::ConnectionHandling
- MODULE ActiveRecord::Core
- MODULE ActiveRecord::CounterCache
- MODULE ActiveRecord::DefineCallbacks
- MODULE ActiveRecord::DynamicMatchers
- MODULE ActiveRecord::Enum
- MODULE ActiveRecord::Explain
- MODULE ActiveRecord::FinderMethods
- MODULE ActiveRecord::Inheritance
- MODULE ActiveRecord::Integration
- MODULE ActiveRecord::LegacyYamlAdapter
- MODULE ActiveRecord::Locking
- MODULE ActiveRecord::ModelSchema
- MODULE ActiveRecord::NestedAttributes
- MODULE ActiveRecord::NoTouching
- MODULE ActiveRecord::Persistence
- MODULE ActiveRecord::QueryMethods
- MODULE ActiveRecord::Querying
- MODULE ActiveRecord::ReadonlyAttributes
- MODULE ActiveRecord::Reflection
- MODULE ActiveRecord::Sanitization
- MODULE ActiveRecord::Scoping
- MODULE ActiveRecord::SecureToken
- MODULE ActiveRecord::Serialization
- MODULE ActiveRecord::SpawnMethods
- MODULE ActiveRecord::Store
- MODULE ActiveRecord::Suppressor
- MODULE ActiveRecord::Tasks
- MODULE ActiveRecord::TestFixtures
- MODULE ActiveRecord::Timestamp
- MODULE ActiveRecord::TouchLater
- MODULE ActiveRecord::Transactions
- MODULE ActiveRecord::Translation
- MODULE ActiveRecord::Type
- MODULE ActiveRecord::VERSION
- MODULE ActiveRecord::Validations
- CLASS ActiveRecord::ActiveRecordError
- CLASS ActiveRecord::AdapterNotFound
- CLASS ActiveRecord::AdapterNotSpecified
- CLASS ActiveRecord::AssociationRelation
- CLASS ActiveRecord::AssociationTypeMismatch
- CLASS ActiveRecord::AttributeAssignmentError
- CLASS ActiveRecord::Base
- CLASS ActiveRecord::ConfigurationError
- CLASS ActiveRecord::ConnectionNotEstablished
- CLASS ActiveRecord::ConnectionTimeoutError
- CLASS ActiveRecord::DangerousAttributeError
- CLASS ActiveRecord::Deadlocked
- CLASS ActiveRecord::EagerLoadPolymorphicError
- CLASS ActiveRecord::EnvironmentMismatchError
- CLASS ActiveRecord::ExclusiveConnectionTimeoutError
- CLASS ActiveRecord::FixtureSet
- CLASS ActiveRecord::ImmutableRelation
- CLASS ActiveRecord::InvalidForeignKey
- CLASS ActiveRecord::IrreversibleMigration
- CLASS ActiveRecord::IrreversibleOrderError
- CLASS ActiveRecord::LogSubscriber
- CLASS ActiveRecord::Migration
- CLASS ActiveRecord::MismatchedForeignKey
- CLASS ActiveRecord::MultiparameterAssignmentErrors
- CLASS ActiveRecord::NoDatabaseError
- CLASS ActiveRecord::NotNullViolation
- CLASS ActiveRecord::PreparedStatementCacheExpired
- CLASS ActiveRecord::PreparedStatementInvalid
- CLASS ActiveRecord::QueryCache
- CLASS ActiveRecord::Railtie
- CLASS ActiveRecord::RangeError
- CLASS ActiveRecord::ReadOnlyRecord
- CLASS ActiveRecord::RecordInvalid
- CLASS ActiveRecord::RecordNotDestroyed
- CLASS ActiveRecord::RecordNotFound
- CLASS ActiveRecord::RecordNotSaved
- CLASS ActiveRecord::RecordNotUnique
- CLASS ActiveRecord::Relation
- CLASS ActiveRecord::Result
- CLASS ActiveRecord::Rollback
- CLASS ActiveRecord::Schema
- CLASS ActiveRecord::SerializationFailure
- CLASS ActiveRecord::SerializationTypeMismatch
- CLASS ActiveRecord::StaleObjectError
- CLASS ActiveRecord::StatementInvalid
- CLASS ActiveRecord::SubclassNotFound
- CLASS ActiveRecord::TransactionIsolationError
- CLASS ActiveRecord::TransactionRollbackError
- CLASS ActiveRecord::TypeConflictError
- CLASS ActiveRecord::UnknownAttributeError
- CLASS ActiveRecord::UnknownPrimaryKey
- CLASS ActiveRecord::ValueTooLong
- CLASS ActiveRecord::WrappedDatabaseException
Methods
- G
- V
Constants
Point | = | Struct.new(:x, :y) |
UnknownAttributeError | = | ActiveModel::UnknownAttributeError |
Raised when unknown attributes are supplied via mass assignment.
|
||
MigrationProxy | = | Struct.new(:name, :version, :filename, :scope) do def initialize(name, version, filename, scope) super @migration = nil end def basename File.basename(filename) end def mtime File.mtime filename end delegate :migrate, :announce, :write, :disable_ddl_transaction, to: :migration private def migration @migration ||= load_migration end def load_migration require(File.expand_path(filename)) name.constantize.new(name, version) end end |
MigrationProxy is used to defer loading of the actual migration classes until they are needed |
Class Public methods
gem_version()
Link
Returns the version of the currently loaded Active Record as a
Gem::Version
version()
Link
Returns the version of the currently loaded ActiveRecord as a Gem::Version