Class: ROM::SQL::Schema::DSL
- Inherits:
-
ROM::Schema::DSL
- Object
- ROM::Schema::DSL
- ROM::SQL::Schema::DSL
- Defined in:
- lib/rom/sql/schema/dsl.rb
Overview
Specialized schema DSL with SQL-specific features
Instance Attribute Summary collapse
- #index_dsl ⇒ Object readonly
Instance Method Summary collapse
-
#indexes(&block) ⇒ Object
Define indexes within a block.
Instance Attribute Details
#index_dsl ⇒ Object (readonly)
14 15 16 |
# File 'lib/rom/sql/schema/dsl.rb', line 14 def index_dsl @index_dsl end |
Instance Method Details
#indexes(&block) ⇒ Object
Define indexes within a block
19 20 21 |
# File 'lib/rom/sql/schema/dsl.rb', line 19 def indexes(&block) @index_dsl = IndexDSL.new(**, &block) end |