aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:22:04 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:22:04 +0000
commit6b835730deb945827a40fb57db385c32527c6ea8 (patch)
treec869a5df40bd16473cda8daff21b29fd570267d8 /activerecord
parent0e37e6678ae7d4687bb5cac30b78e80259250cec (diff)
downloadrails-6b835730deb945827a40fb57db385c32527c6ea8.tar.gz
rails-6b835730deb945827a40fb57db385c32527c6ea8.tar.bz2
rails-6b835730deb945827a40fb57db385c32527c6ea8.zip
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
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/schema.rb4
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