Class: Arfy::MigrationBuilder::RemoveIndex
- Inherits:
-
ColumnMigration
- Object
- GenericMigration
- ColumnMigration
- Arfy::MigrationBuilder::RemoveIndex
- Defined in:
- lib/arfy/migration_builder/builders/remove_index.rb
Instance Method Summary collapse
- #column=(column) ⇒ Object
- #index=(index) ⇒ Object
-
#initialize(table_name) ⇒ RemoveIndex
constructor
A new instance of RemoveIndex.
Methods inherited from GenericMigration
#code_for_template, #respond_to?
Constructor Details
#initialize(table_name) ⇒ RemoveIndex
Returns a new instance of RemoveIndex.
7 8 9 |
# File 'lib/arfy/migration_builder/builders/remove_index.rb', line 7 def initialize(table_name) super(table_name, nil) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Arfy::MigrationBuilder::ColumnMigration
Instance Method Details
#column=(column) ⇒ Object
15 16 17 |
# File 'lib/arfy/migration_builder/builders/remove_index.rb', line 15 def column=(column) @column_name = column end |
#index=(index) ⇒ Object
11 12 13 |
# File 'lib/arfy/migration_builder/builders/remove_index.rb', line 11 def index=(index) @index_name = index end |