# Migrations for views

**URL:** <https://www.ruby-forum.com/t/migrations-for-views/185724>\
**Category:** Rails\
**Created:** [March 25, 2010, 5:23am UTC](https://www.ruby-forum.com/t/migrations-for-views/185724 "2010-03-25T05:23:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 25, 2010, 5:23am UTC](https://www.ruby-forum.com/t/migrations-for-views/185724/1 "2010-03-25T05:23:04Z")

</div>

Hi All,

How to add the migrations for the MySQL views? any idea?? any gem  
available? have any one created migrations for mysql views?? Please  
let me know asap?? I am totally struck with this…

Thanks,  
Ramu.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 25, 2010, 9:06am UTC](https://www.ruby-forum.com/t/migrations-for-views/185724/2 "2010-03-25T09:06:03Z")

</div>

On Mar 25, 4:21 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi All,
> 
> How to add the migrations for the MySQL views? any idea?? any gem  
> available? have any one created migrations for mysql views?? Please  
> let me know asap?? I am totally struck with this…

I don’t believe there is anything built into rails to help with views  
but migrations can execute arbitrary sql via the execute function.

Fred
