Hello All, I''ve been using squeegy fleximage for my image uploads. However while migrating my db, say through seeds, I''m not being able to completely achieve this because I''m having a " Validation failed: Image file is required ", coming due to the " acts_as_fleximage " in my model. How can I avoid this when doing my migrations ? Regards, Joel --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 02 June 2008 19:57:52 joel wrote:> I''m not being able to completely > achieve this because I''m having a " Validation failed: Image file is > required ", coming due to the " acts_as_fleximage " in my model. > How can I avoid this when doing my migrations ?Something similar came up earlier this week. Try this inside your migration: class Image < ActiveRecord::base; end Then your migration won''t attempt to perform _any_ validation. Ciao, Sheldon. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIRmropGJX8XSgas0RAs9tAKCpOx+KQ8BOaDiQeS6RxbJKpjPxrQCeOYSe x98eJQEgWRAvKs9Zz0Scp9c=u3PA -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---