]> git.openstreetmap.org Git - rails.git/blobdiff - lib/migrate.rb
Refactor old_relation_controller tests to use factories.
[rails.git] / lib / migrate.rb
index 9008b0a9f2ba8f8fdfa9435ef350c390fd141707..21c1b2cf2ab7e8c03f8d2585af3f4ce1432f19e7 100644 (file)
@@ -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