wrong foreign key command in the migration
This commit is contained in:
parent
7252ffa820
commit
d19076d0ed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue