Class: SchemaPlus::ForeignKeys::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_auto_foreign_keys.rb

Instance Method Summary collapse

Instance Method Details

#auto_createObject

: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_indexObject

: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