Class: ActiveRecord::ConnectionAdapters::IBM_DBAdapter::UniqueConstraintDefinition
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::ConnectionAdapters::IBM_DBAdapter::UniqueConstraintDefinition
- Defined in:
- lib/active_record/connection_adapters/ibm_db_adapter.rb
Overview
end of class TableDefinition
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#options ⇒ Object
Returns the value of attribute options.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
- #deferrable ⇒ Object
- #defined_for?(name: nil, column: nil, **options) ⇒ Boolean
- #export_name_on_schema_dump? ⇒ Boolean
- #name ⇒ Object
- #using_index ⇒ Object
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
757 758 759 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 757 def column @column end |
#options ⇒ Object
Returns the value of attribute options
757 758 759 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 757 def @options end |
#table_name ⇒ Object
Returns the value of attribute table_name
757 758 759 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 757 def table_name @table_name end |
Instance Method Details
#deferrable ⇒ Object
762 763 764 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 762 def deferrable [:deferrable] end |
#defined_for?(name: nil, column: nil, **options) ⇒ Boolean
774 775 776 777 778 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 774 def defined_for?(name: nil, column: nil, **) (name.nil? || self.name == name.to_s) && (column.nil? || Array(self.column) == Array(column).map(&:to_s)) && .all? { |k, v| self.[k].to_s == v.to_s } end |
#export_name_on_schema_dump? ⇒ Boolean
770 771 772 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 770 def export_name_on_schema_dump? !ActiveRecord::SchemaDumper.unique_ignore_pattern.match?(name) if name end |
#name ⇒ Object
758 759 760 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 758 def name [:name] end |
#using_index ⇒ Object
766 767 768 |
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 766 def using_index [:using_index] end |