Class: SchemaPlus::ForeignKeys::Config
- Inherits:
-
Object
- Object
- SchemaPlus::ForeignKeys::Config
- Defined in:
- lib/schema_auto_foreign_keys.rb
Instance Method Summary collapse
-
#auto_create ⇒ Object
:attr_accessor: auto_create.
-
#auto_index ⇒ Object
:attr_accessor: auto_index.
Instance Method Details
#auto_create ⇒ Object
:attr_accessor: auto_create
Whether to automatically create foreign key constraints for columns suffixed with _id
. Boolean, default is true
.
21 |
# File 'lib/schema_auto_foreign_keys.rb', line 21 has_value :auto_create, klass: :boolean, default: true |
#auto_index ⇒ Object
:attr_accessor: auto_index
Whether to automatically create indexes when creating foreign key constraints for columns. Boolean, default is true
.
28 |
# File 'lib/schema_auto_foreign_keys.rb', line 28 has_value :auto_index, klass: :boolean, default: true |