Ruby on Rails
Monday, January 19, 2015
you know there is a typo, right? "CreateTier3DiscountountGroups" (on database your table is named "tier_3_discountount_groups " or "tier_3_discount_groups"?). Also, you can use "column_exists?", like this:
--
-- add_column :tier_3_discount_groups, :description, :text unless column_exists? :tier_3_discount_groups, :description--
Daniel Loureiro
http://www.learnwithdaniel.com
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8e3ba495-3e5d-4b64-a61d-508620738bc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment