lib/ardb/migration_helpers.rb in ardb-0.27.3 vs lib/ardb/migration_helpers.rb in ardb-0.28.0

- old
+ new

@@ -30,10 +30,10 @@ @from_table = from_table.to_s @from_column = from_column.to_s @to_table = to_table.to_s @to_column = (options[:to_column] || 'id').to_s @name = (options[:name] || "fk_#{@from_table}_#{@from_column}").to_s - @adapter = Ardb::Adapter.send(Ardb.config.db.adapter) + @adapter = Ardb::Adapter.new(Ardb.config) end def add_sql apply_data(@adapter.foreign_key_add_sql) end