Permalink
Browse files

Use table prefix and suffix for schema_migrations index.

[#1543 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
timocp authored and jeremy committed Dec 10, 2008
1 parent 22f3398 commit 7eaed4fefebf7a2084a7936775b6fc1b085f22ba
@@ -329,7 +329,7 @@ def initialize_schema_migrations_table
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:

0 comments on commit 7eaed4f

Please sign in to comment.