Skip to content

Commit

Permalink
Makes ActiveRecord::Schema respect AR::Base.table_name_prefix (closes #…
Browse files Browse the repository at this point in the history
…3848) [rubyonrails@atyp.de]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Feb 25, 2006
1 parent 0e37e66 commit 6b83573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b83573

Please sign in to comment.