Class: ActiveRecord::ConnectionAdapters::Column
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
ActiveRecord::ConnectionAdapters::PostgreSQLColumn, ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::Column
|
|
Inherits: | Object |
Defined in: | activerecord/lib/active_record/connection_adapters/column.rb |
Overview
An abstract definition of a column in a table.
Instance Attribute Summary
- #accessor readonly
- #klass readonly
- #limit readonly
- #precision readonly
- #scale readonly
- #type readonly
- #type_cast_for_database readonly
- #type_cast_for_schema readonly
- #type_cast_from_database readonly
- #type_cast_from_user readonly
Instance Method Summary
Instance Attribute Details
#accessor (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#klass (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#limit (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#precision (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#scale (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#type (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#type_cast_for_database (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#type_cast_for_schema (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#type_cast_from_database (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#type_cast_from_user (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
Instance Method Details
#binary? ⇒ Boolean
# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#changed? ⇒ Boolean
# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#number? ⇒ Boolean
# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type
#text? ⇒ Boolean
# File 'activerecord/lib/active_record/connection_adapters/column.rb', line 18
delegate :type, :precision, :scale, :limit, :klass, :accessor, :text?, :number?, :binary?, :changed?, :type_cast_from_user, :type_cast_from_database, :type_cast_for_database, :type_cast_for_schema, to: :cast_type