Class: ActiveRecord::ConnectionAdapters::PostgreSQL::UniqueKeyDefinition
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#options ⇒ Object
Returns the value of attribute options.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
Methods inherited from Struct
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns
214 215 216 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 214 def columns @columns end |
#options ⇒ Object
Returns the value of attribute options
214 215 216 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 214 def @options end |
#table_name ⇒ Object
Returns the value of attribute table_name
214 215 216 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 214 def table_name @table_name end |
Instance Method Details
#deferrable ⇒ Object
219 220 221 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 219 def deferrable [:deferrable] end |
#export_name_on_schema_dump? ⇒ Boolean
223 224 225 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 223 def export_name_on_schema_dump? !ActiveRecord::SchemaDumper.unique_ignore_pattern.match?(name) if name end |
#name ⇒ Object
215 216 217 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 215 def name [:name] end |