now I see what the problem was, I thought that by doing
t.references :project the migration would do the reference on mysql,
instead of just creating the field for the FK.
It’s a one to many so all I had to do to add the reference was
add_column :tasks, :project_id, :integer
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.