Class: DbSchema::Operations::CreateIndex
- Inherits:
-
Object
- Object
- DbSchema::Operations::CreateIndex
- Defined in:
- lib/db_schema/operations.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
- #columns ⇒ Object
-
#initialize(index) ⇒ CreateIndex
constructor
A new instance of CreateIndex.
- #name ⇒ Object
- #primary? ⇒ Boolean
Constructor Details
#initialize(index) ⇒ CreateIndex
Returns a new instance of CreateIndex.
125 126 127 |
# File 'lib/db_schema/operations.rb', line 125 def initialize(index) @index = index end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
123 124 125 |
# File 'lib/db_schema/operations.rb', line 123 def index @index end |
Instance Method Details
#columns ⇒ Object
137 138 139 |
# File 'lib/db_schema/operations.rb', line 137 def columns index.columns end |
#name ⇒ Object
133 134 135 |
# File 'lib/db_schema/operations.rb', line 133 def name index.name end |
#primary? ⇒ Boolean
129 130 131 |
# File 'lib/db_schema/operations.rb', line 129 def primary? index.primary? end |