0

Hi ,

I want to create a class in lib folder , from that class want to create mysql view .
such as in mysql

CREATE VIEW rocket_current_activities AS
    SELECT rocket_activities.status  AS status from rocket_activities....

This can be do in mysql but how to do from rails.
I dont want in migration file.
Please help!!!
3
Contributors
3
Replies
28
Views
2 Years
Discussion Span
Last Post by rchawdhari
0

The question is why do you need to create view in Rails? You should not need to be manipulating with database schema at all but rather use Rails' object to do that for you. Weird...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.