diff options
author | Tim Peters <tim.peters@adelaide.edu.au> | 2008-12-10 16:50:06 +1030 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-09 22:56:37 -0700 |
commit | 7eaed4fefebf7a2084a7936775b6fc1b085f22ba (patch) | |
tree | b571b17ee9d5c65e5de56db04c9bc9debf610cad /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 22f339825329e2d4463a4130e9fa68baf9d27eb6 (diff) | |
download | rails-7eaed4fefebf7a2084a7936775b6fc1b085f22ba.tar.gz rails-7eaed4fefebf7a2084a7936775b6fc1b085f22ba.tar.bz2 rails-7eaed4fefebf7a2084a7936775b6fc1b085f22ba.zip |
Use table prefix and suffix for schema_migrations index.
[#1543 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 94d15fdb69..20787ec510 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -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: |