From 6b835730deb945827a40fb57db385c32527c6ea8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 25 Feb 2006 23:22:04 +0000 Subject: Makes ActiveRecord::Schema respect AR::Base.table_name_prefix (closes #3848) [rubyonrails@atyp.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/schema.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3