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.
22 |
# File 'lib/schema_auto_foreign_keys.rb', line 22 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.
29 |
# File 'lib/schema_auto_foreign_keys.rb', line 29 has_value :auto_index, :klass => :boolean, :default => true |