Thursday, July 12, 2012

Re: [Rails] What the Ruby Association

On Jul 12, 2012, at 11:18 AM, Jean-Sébastien D. wrote:

>> If you read through the migrations guide, you will learn about rake
>> db:rollback, which will step backward through your migrations. You can
>> then hand-edit the migrations, delete the ones that have rolled back and
>> generate new ones, or some combination of those. Just don't remove an
>> already-run migration without rolling it back first.
>>
>> Walter
>
> Is there a way for me to select one specifically something like this
>
> rake db:rollback YYYYMMDDHHMMSS_model.rb

I don't know specifically -- what do the guides say? I've only ever stepped back one or two at a time, made my adjustments, then run rake db:migrate again to roll back up to the current stage.

Walter

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate