diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/schema.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb index 6e0579b586..dc854463f6 100644 --- a/activerecord/lib/active_record/schema.rb +++ b/activerecord/lib/active_record/schema.rb @@ -47,11 +47,11 @@ module ActiveRecord cols = columns('schema_info') info = info.map do |k,v| - v = quote(v, cols.detect { |c| c.name == k.to_s }) + v = Base.connection.quote(v, cols.detect { |c| c.name == k.to_s }) "#{k} = #{v}" end - update "UPDATE #{Migrator.schema_info_table_name} SET #{info.join(", ")}" + Base.connection.update "UPDATE #{Migrator.schema_info_table_name} SET #{info.join(", ")}" end end end |