Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use table prefix and suffix for schema_migrations index.
[#1543 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
Tim Peters authored and jeremy committed Aug 10, 2009
1 parent 22f3398 commit 7eaed4f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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:
Expand Down

0 comments on commit 7eaed4f

Please sign in to comment.