# Squeegy Fleximage

**URL:** <https://www.ruby-forum.com/t/squeegy-fleximage/139301>\
**Category:** Rails\
**Created:** [June 2, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/squeegy-fleximage/139301 "2008-06-02T19:58:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [June 2, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/squeegy-fleximage/139301/1 "2008-06-02T19:58:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [June 4, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/squeegy-fleximage/139301/2 "2008-06-04T12:14:41Z")

</div>

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