If I create a new rails 3 migration with (for example)
rails g migration tester title:tester user:references
, everything works fine...howe
If you are using the Rails 4.x you can now generate migrations with references, like this:
rails generate migration AddUserRefToProducts user:references
like you can see on rails guides