X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..427f5457d9699c319a1957940a50dea887b00f9d:/lib/migrate.rb diff --git a/lib/migrate.rb b/lib/migrate.rb index 9008b0a9f..21c1b2cf2 100644 --- a/lib/migrate.rb +++ b/lib/migrate.rb @@ -29,7 +29,7 @@ module ActiveRecord end def alter_primary_key(table_name, new_columns) - execute "ALTER TABLE #{quote_table_name(table_name)} DROP CONSTRAINT #{quote_table_name(table_name + "_pkey")}" + execute "ALTER TABLE #{quote_table_name(table_name)} DROP CONSTRAINT #{quote_table_name(table_name + '_pkey')}" execute "ALTER TABLE #{quote_table_name(table_name)} ADD PRIMARY KEY (#{quote_column_name(new_columns)})" end