Module: ROM::SQL::Plugin::SchemaIndexes::DSL
- Defined in:
- lib/rom/sql/plugin/schema_indexes.rb
Instance Method Summary collapse
- #configure ⇒ Object private
-
#indexes(&block) ⇒ Object
Define indexes within a block.
Instance Method Details
#configure ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 |
# File 'lib/rom/sql/plugin/schema_indexes.rb', line 20 def configure super config..update(indexes: index_dsl.(config.id, attributes.values)) end |
#indexes(&block) ⇒ Object
Define indexes within a block
15 16 17 |
# File 'lib/rom/sql/plugin/schema_indexes.rb', line 15 def indexes(&block) index_dsl.instance_eval(&block) end |