X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ac7bb003ec9726d23d0a537f347c2dd4c8f7204a..3f3ffdfea1ecb57fb95e24b71ed070c8f9fbedbd:/lib/migrate.rb diff --git a/lib/migrate.rb b/lib/migrate.rb index 681eba5b6..21c1b2cf2 100644 --- a/lib/migrate.rb +++ b/lib/migrate.rb @@ -20,7 +20,7 @@ module ActiveRecord end module SchemaStatements - def add_primary_key(table_name, column_name, options = {}) + def add_primary_key(table_name, column_name, _options = {}) execute "ALTER TABLE #{quote_table_name(table_name)} ADD PRIMARY KEY (#{quote_column_name(column_name)})" end @@ -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