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...
1 parent c3da22c commit 9e96f37edd598d698c9f39c9af114198e5000c70 @timocp timocp committed with jeremy Dec 10, 2008
@@ -321,7 +321,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 9e96f37

Please sign in to comment.