From: Shaun McDonald Date: Tue, 30 Sep 2008 15:52:54 +0000 (+0000) Subject: wrong foreign key command in the migration X-Git-Tag: live~8121^2~297 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d19076d0ed7e077e33d1b7606b6186f99e994943 wrong foreign key command in the migration --- diff --git a/db/migrate/020_add_changesets.rb b/db/migrate/020_add_changesets.rb index 1c599de01..c21b50782 100644 --- a/db/migrate/020_add_changesets.rb +++ b/db/migrate/020_add_changesets.rb @@ -38,7 +38,7 @@ class AddChangesets < ActiveRecord::Migration @@conv_user_tables.each { |tbl| rename_column tbl, :user_id, :changeset_id #foreign keys too - add_foreign_key tbl, [:changeset_id], :users + add_foreign_key tbl, [:changeset_id], :users, [:id] } end