mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use table prefix and suffix for schema_migrations index.
[#1543 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
committed by
Jeremy Kemper
parent
22f3398253
commit
7eaed4fefe
@@ -329,7 +329,7 @@ module ActiveRecord
|
||||
schema_migrations_table.column :version, :string, :null => false
|
||||
end
|
||||
add_index sm_table, :version, :unique => true,
|
||||
:name => 'unique_schema_migrations'
|
||||
:name => "#{Base.table_name_prefix}unique_schema_migrations#{Base.table_name_suffix}"
|
||||
|
||||
# Backwards-compatibility: if we find schema_info, assume we've
|
||||
# migrated up to that point:
|
||||
|
||||
Reference in New Issue
Block a user