ok thanks, but how do you actually generate that particular migrations file
from the command line?, ie it would be 004_something

On Fri, Sep 26, 2008 at 9:31 AM, Craig White <[EMAIL PROTECTED]> wrote:

>
> On Fri, 2008-09-26 at 08:58 -0700, Jon Liu wrote:
> > Craig,
> >
> > Yeah that sounds more feasible rather than migrating down...I can
> > definitely confirm VERSION=0 will drop the table though because when
> > try to load the structure in the console it throws me an error.
> >
> > What would be the syntax to just add a change(thus adding a new
> > migration then)
> >
> > I want to add t.intger :album_id.  I'm assuming it's a command at the
> > command line that will product and 004 migration file?
> ----
> something like this in the migration...
>
>  def self.up
>    add_column :reviews, :album_id, :integer
>  end
>
>  def self.down
>    remove_column :reviews, :album_id
>  end
>
> Craig
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to