If I create a new rails 3 migration with (for example)
rails g migration tester title:tester user:references
, everything works fine...howe
With the two previous steps stated above, you're still missing the foreign key constraint. This should work:
class AddUserReferenceToTester < ActiveRecord::Migration def change add_column :testers, :user_id, :integer, references: :users end end