On Sep 11, 5:17 am, Presario 6331RSH HAM <[EMAIL PROTECTED]> wrote:
> I was going through the lessons and after I went through exercise 4.5
> step 3, which states to
>
> "3. Execute Version 4 migration." I ended up having to execute Version
> 3 migration because in
>
> Exercise (6.1) Add callback to the Model the new entries are still
> using :email => not
>
> :email_addr =>. So I would say @ "3. Execute Version 4 migration."
> should be "3. Execute
>
> Version 3 migration." Because it will save you from confusion later
> when you get a bunch of errors.
>
> Maybe you were supposed to get these errors. I don't know. It's up to
> the instructor on that one.
Sorry Presario, I did not mean to send you a private message, I've
just click on the wrong button.
It is probably just a quick copy and paste.
The best way to avoid those errors is to create a new migration which
rename the email_addr field to email, just after the exercise where
you cycle through migration versions. This way when you add a new
migration for the credit card field, you have no problem and you can
go backwards and forwards without any problem, which can be very
useful if you have any problem with the validation of credit card.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---