Re: [Rails] Couldn't find 'migration' generator

52 views
Skip to first unread message

Vivek Sampara

unread,
Sep 25, 2014, 5:56:43 AM9/25/14
to rubyonra...@googlegroups.com
I dont remember the older rails syntax but isn't it "rails script/generate"​ instead of "ruby script/generate" ? 

eric felleiter

unread,
Sep 25, 2014, 9:30:14 AM9/25/14
to rubyonra...@googlegroups.com
Isn't it just "script/generate migration"


On Thursday, September 25, 2014 3:13:12 AM UTC-4, M,Gopi M.gopinath wrote:
Hi,

I am trying to add a field in a existing table (database) in Rails 2.3.5 and ruby 1.8.6.

I gave a command to generate a migration, Here as follows,

ruby script/generate migration AddwebToDistributors website:string

But I am getting a error, saying that "Couldn't find 'migration' generator"

Can anyone help me to solve this issue.

Best Regards,

Gopinath M


Matt Jones

unread,
Sep 25, 2014, 3:54:46 PM9/25/14
to rubyonra...@googlegroups.com


On Thursday, 25 September 2014 03:13:12 UTC-4, M,Gopi M.gopinath wrote:
Hi,

I am trying to add a field in a existing table (database) in Rails 2.3.5 and ruby 1.8.6.

I gave a command to generate a migration, Here as follows,

ruby script/generate migration AddwebToDistributors website:string

But I am getting a error, saying that "Couldn't find 'migration' generator"


Try running the generator without arguments and report what you get back:

ruby script/generate

"migration" should be in the list that comes back, but perhaps something is broken...

--Matt Jones
 

Colin Law

unread,
Sep 25, 2014, 5:10:40 PM9/25/14
to rubyonra...@googlegroups.com
On 25 September 2014 08:12, M,Gopi M.gopinath <gopi1...@gmail.com> wrote:
> Hi,
>
> I am trying to add a field in a existing table (database) in Rails 2.3.5 and
> ruby 1.8.6.

Is ruby 1.8.6 ok for rails 2.3.5? I know that at some point 1.8.7
became necessary but not sure when.

Colin

Jason Fleetwood-Boldt

unread,
Sep 25, 2014, 6:32:09 PM9/25/14
to rubyonra...@googlegroups.com

We should make a chart for that information to be easily accessible. the last one I can find on the internet is this one but it is 2 years old


http://www.devalot.com/articles/2012/03/ror-compatibility
> --
> 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/CAL%3D0gLv6ZVDiPR7xHrRPG%2BXbHPHPZBMj%3D%3DxkKiCB1M2PJ95%2BuQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

Pratap Patil

unread,
Oct 20, 2014, 9:11:36 AM10/20/14
to rubyonra...@googlegroups.com
In Rails 2 we use

ruby script/generate migration table_name


On Thursday, September 25, 2014 12:43:12 PM UTC+5:30, M,Gopi M.gopinath wrote:
Hi,

I am trying to add a field in a existing table (database) in Rails 2.3.5 and ruby 1.8.6.

I gave a command to generate a migration, Here as follows,

ruby script/generate migration AddwebToDistributors website:string

But I am getting a error, saying that "Couldn't find 'migration' generator"

Reply all
Reply to author
Forward
Message has been deleted
0 new messages