Class: ActiveRecord::ConnectionAdapters::CheckConstraintDefinition
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::ConnectionAdapters::CheckConstraintDefinition
- Defined in:
- lib/active_record/connection_adapters/abstract/schema_definitions.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#options ⇒ Object
Returns the value of attribute options.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
- #export_name_on_schema_dump? ⇒ Boolean
- #name ⇒ Object
- #validate? ⇒ Boolean (also: #validated?)
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression
138 139 140 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 138 def expression @expression end |
#options ⇒ Object
Returns the value of attribute options
138 139 140 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 138 def @options end |
#table_name ⇒ Object
Returns the value of attribute table_name
138 139 140 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 138 def table_name @table_name end |
Instance Method Details
#export_name_on_schema_dump? ⇒ Boolean
148 149 150 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 148 def export_name_on_schema_dump? !ActiveRecord::SchemaDumper.chk_ignore_pattern.match?(name) if name end |
#name ⇒ Object
139 140 141 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 139 def name [:name] end |
#validate? ⇒ Boolean Also known as: validated?
143 144 145 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 143 def validate? .fetch(:validate, true) end |