Class: ROM::SQL::Schema::DSL

Inherits:
ROM::Schema::DSL
  • Object
show all
Defined in:
lib/rom/sql/schema/dsl.rb

Overview

Specialized schema DSL with SQL-specific features

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#index_dslObject (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(**options, &block)
end