Skip to content
This repository
Browse code

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
  • Loading branch information...
commit 6b835730deb945827a40fb57db385c32527c6ea8 1 parent 0e37e66
David Heinemeier Hansson authored February 25, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  activerecord/lib/active_record/schema.rb
4  activerecord/lib/active_record/schema.rb
@@ -47,11 +47,11 @@ def self.define(info={}, &block)
47 47
         cols = columns('schema_info')
48 48
 
49 49
         info = info.map do |k,v|
50  
-          v = quote(v, cols.detect { |c| c.name == k.to_s })
  50
+          v = Base.connection.quote(v, cols.detect { |c| c.name == k.to_s })
51 51
           "#{k} = #{v}"
52 52
         end
53 53
 
54  
-        update "UPDATE #{Migrator.schema_info_table_name} SET #{info.join(", ")}"
  54
+        Base.connection.update "UPDATE #{Migrator.schema_info_table_name} SET #{info.join(", ")}"
55 55
       end
56 56
     end
57 57
   end

0 notes on commit 6b83573

Please sign in to comment.
Something went wrong with that request. Please try again.