Class: DbSchema::Operations::DropIndex
- Inherits:
-
Object
- Object
- DbSchema::Operations::DropIndex
- Defined in:
- lib/db_schema/operations.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, primary) ⇒ DropIndex
constructor
A new instance of DropIndex.
- #primary? ⇒ Boolean
Constructor Details
#initialize(name, primary) ⇒ DropIndex
Returns a new instance of DropIndex.
146 147 148 149 |
# File 'lib/db_schema/operations.rb', line 146 def initialize(name, primary) @name = name @primary = primary end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
144 145 146 |
# File 'lib/db_schema/operations.rb', line 144 def name @name end |
Instance Method Details
#primary? ⇒ Boolean
151 152 153 |
# File 'lib/db_schema/operations.rb', line 151 def primary? @primary end |