I don't understand why you have made a file in bin/rails. There is no
need to do that. You must first generate the migration using the
command
rails generate migration ...
from the command line. That will generate the migration file in
db/migrate, then you have a look there to make sure it is correct and
then run
rake db:migrate
to apply the migration.
I suspect you are just starting with rails, in which case I recommend
working right through a good tutorial such as
railstutorial.org (which
is free to use online). That will show you the basics of rails,
including how to use migrations.
Colin
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to
rubyonra...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/f6d0d58cebaf05d310bc194cd9c8ee6b%40ruby-forum.com.
> For more options, visit
https://groups.google.com/d/optout.