Squeegy Fleximage

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

-----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-----