Re: add to migration not working (Rails 2.0.2)

Craig White
2008-04-12T05:40:13Z

On Fri, 2008-04-11 at 22:09 -0700, Joe Lewis wrote:
> I''m experiencing the same issue. script/generate migration is
stubbing
> the migration, minus the column info that i''m specifying.
Here''s what
> I did in the Terminal:
>
> $ ruby script/generate migration AddPrimaryPlatformInfo os:string
> hardware:string
>       exists  db/migrate
>       create  db/migrate/005_add_primary_platform_info.rb
>
> My 005_add_primary_platform_info.rb file then has:
>
> class AddPrimaryPlatformInfo < ActiveRecord::Migration
>   def self.up
>   end
>
>   def self.down
>   end
> end
----
if you did...

script/generate model SomeNewModel

you would get the base ''add table/column'' stuff inserted

Craig