Class: Arfy::MigrationBuilder::AddIndex

Inherits:
ColumnMigration show all
Includes:
Reversible
Defined in:
lib/arfy/migration_builder/builders/add_index.rb

Instance Method Summary collapse

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, options = nil)
  super(table_name, column_name)
  unless options.nil?
    @name = options[:name]
    @unique = options[:unique]
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Arfy::MigrationBuilder::ColumnMigration