Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@dhh dhh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/schema.rb
View
4 activerecord/lib/active_record/schema.rb
@@ -47,11 +47,11 @@ def self.define(info={}, &block)
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
Please sign in to comment.
Something went wrong with that request. Please try again.