Class: Arfy::MigrationBuilder::AddIndex
- Inherits:
-
ColumnMigration
- Object
- GenericMigration
- ColumnMigration
- Arfy::MigrationBuilder::AddIndex
- Includes:
- Reversible
- Defined in:
- lib/arfy/migration_builder/builders/add_index.rb
Instance Method Summary collapse
-
#initialize(table_name, column_name, options = nil) ⇒ AddIndex
constructor
A new instance of AddIndex.
Methods inherited from GenericMigration
#code_for_template, #respond_to?
Constructor Details
#initialize(table_name, column_name, options = nil) ⇒ AddIndex
Returns a new instance of AddIndex.
8 9 10 11 12 13 14 |
# File 'lib/arfy/migration_builder/builders/add_index.rb', line 8 def initialize(table_name, column_name, = nil) super(table_name, column_name) unless .nil? @name = [:name] @unique = [:unique] end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Arfy::MigrationBuilder::ColumnMigration