addis_a
1
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
I dont remember the older rails syntax but isn’t it "rails
script/generate"
instead of “ruby script/generate” ?
On Thursday, 25 September 2014 03:13:12 UTC-4, M,Gopi M.gopinath wrote:
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 J.
On 25 September 2014 08:12, M,Gopi M.gopinath [email protected]
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
Isn’t it just “script/generate migration”
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
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