ActiveRecord::Enum
source link: https://api.rubyonrails.org/classes/ActiveRecord/Enum.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
files
Core extensions
AbstractController
ActionCable
ActionController
ActionDispatch
ActionMailbox
ActionMailer
ActionText
ActionView
ActiveJob
ActiveModel
ActiveRecord
ActiveJobRequiredError < ActiveRecord::ActiveRecordError
ActiveRecordError < StandardError
AdapterNotFound < ActiveRecord::ActiveRecordError
AdapterNotSpecified < ActiveRecord::ActiveRecordError
AdapterTimeout < ActiveRecord::QueryAborted
Aggregations
AssociationNotFoundError < ConfigurationError
AssociationTypeMismatch < ActiveRecord::ActiveRecordError
Associations
AttributeAssignment
AttributeAssignmentError < ActiveRecord::ActiveRecordError
AttributeMethods
Attributes
AutosaveAssociation
Base < Object
Batches
Calculations
Callbacks
ConfigurationError < ActiveRecord::ActiveRecordError
ConnectionAdapters
ConnectionHandling
ConnectionNotEstablished < ActiveRecord::ActiveRecordError
ConnectionTimeoutError < ActiveRecord::ConnectionNotEstablished
CounterCache
DangerousAttributeError < ActiveRecord::ActiveRecordError
DatabaseAlreadyExists < ActiveRecord::StatementInvalid
DatabaseConfigurations < Object
Deadlocked < ActiveRecord::TransactionRollbackError
DelegatedType
DestroyAssociationAsyncError < StandardError
DestroyAssociationAsyncJob < ActiveJob::Base
DynamicMatchers
EagerLoadPolymorphicError < ActiveRecordError
EnvironmentMismatchError < ActiveRecord::ActiveRecordError
ExclusiveConnectionTimeoutError < ActiveRecord::ConnectionTimeoutError
Explain
FinderMethods
FixtureSet < Object
HasManyThroughAssociationNotFoundError < ActiveRecordError
ImmutableRelation < ActiveRecord::ActiveRecordError
Inheritance
Integration
InvalidForeignKey < ActiveRecord::WrappedDatabaseException
InverseOfAssociationNotFoundError < ActiveRecordError
IrreversibleMigration < ActiveRecord::MigrationError
IrreversibleOrderError < ActiveRecord::ActiveRecordError
LockWaitTimeout < ActiveRecord::StatementInvalid
Locking
LogSubscriber < ActiveSupport::LogSubscriber
Middleware
Migration < Object
MismatchedForeignKey < ActiveRecord::StatementInvalid
ModelSchema
MultiparameterAssignmentErrors < ActiveRecord::ActiveRecordError
NestedAttributes
NoDatabaseError < ActiveRecord::StatementInvalid
NoTouching
NotNullViolation < ActiveRecord::StatementInvalid
Persistence
PredicateBuilder < Object
PreparedStatementCacheExpired < ActiveRecord::StatementInvalid
PreparedStatementInvalid < ActiveRecord::ActiveRecordError
QueryAborted < ActiveRecord::StatementInvalid
QueryCache < Object
QueryCanceled < ActiveRecord::QueryAborted
QueryMethods
Querying
RangeError < ActiveRecord::StatementInvalid
ReadOnlyError < ActiveRecord::ActiveRecordError
ReadOnlyRecord < ActiveRecord::ActiveRecordError
ReadonlyAttributes
RecordInvalid < ActiveRecord::ActiveRecordError
RecordNotDestroyed < ActiveRecord::ActiveRecordError
RecordNotFound < ActiveRecord::ActiveRecordError
RecordNotSaved < ActiveRecord::ActiveRecordError
RecordNotUnique < ActiveRecord::WrappedDatabaseException
Reflection
Relation < Object
Result < Object
Rollback < ActiveRecord::ActiveRecordError
Sanitization
Schema < ActiveRecord::Migration::Current
Scoping
SecureToken
Serialization
SerializationFailure < ActiveRecord::TransactionRollbackError
SerializationTypeMismatch < ActiveRecord::ActiveRecordError
SignedId
SpawnMethods
StaleObjectError < ActiveRecord::ActiveRecordError
StatementCache < Object
StatementInvalid < ActiveRecord::ActiveRecordError
StatementTimeout < ActiveRecord::QueryAborted
Store
StrictLoadingViolationError < ActiveRecord::ActiveRecordError
SubclassNotFound < ActiveRecord::ActiveRecordError
Suppressor
TableNotSpecified < ActiveRecord::ActiveRecordError
Tasks
TestFixtures
Timestamp
TransactionIsolationError < ActiveRecord::ActiveRecordError
TransactionRollbackError < ActiveRecord::StatementInvalid
Transactions
Translation
TypeConflictError < StandardError
UnknownAttributeError < NoMethodError
UnknownAttributeReference < ActiveRecord::ActiveRecordError
UnknownPrimaryKey < ActiveRecord::ActiveRecordError
VERSION
Validations
ValueTooLong < ActiveRecord::StatementInvalid
WrappedDatabaseException < ActiveRecord::StatementInvalid
ActiveStorage
ActiveSupport
Minitest
Rails
Recommend
-
135
En...
-
61
Is there anything more fundamental, in iOS deve...
-
48
This is second part of my C++ Telltales series where I share some tips and tricks to work with C++. Feel free to check out also other parts of the series from my profile! C++ enums are useful when you have to cre...
-
34
什么是枚举 什么是枚举?说实话,在我这些年的开发生涯中,用过枚举的次数大概两只手都可以数的过来。当然你不能说枚举一无是处,只能说是我对 Java 理解的还不够深刻,在可以使用枚举的时候并没有去使用。 假设我有两个孩子(其实不用假设),每到周末他们都不知...
-
68
Is this... a sealed class?
-
49
Note: This post is part of a series on D8 and R8, Android’s new dexer and optimizer, respectively. For an intro to D8 read “Android’s Java 8 support” . For an...
-
36
在很久之前,我曾经 写过(或者说,翻译过)一篇关于OOC里泛型的博客 ,在那个时候,我对OOC的泛型设计是持否定态度的——相比起OOC的动态泛型,那时...
-
13
SF Symbols is a great way to add symbols in apps. Introduced during WWDC 2019, and with a new updated version this year, th...
-
27
Rust has two major mechanisms for delegating logic: enums and trait objects, and it may be unclear when to use one or the other. In this post, I will walk through how each works, what the tradeoffs are, and how to choose t...
-
5
ActiveRecord’s enum provides an easy way to map values to integers. However, it has been lagging in the built-in assertions available. Recently, Rails added options to prevent enum valu...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK