Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views aren't dumped into schema #22

Open
morgz opened this issue Jul 16, 2011 · 0 comments
Open

Views aren't dumped into schema #22

morgz opened this issue Jul 16, 2011 · 0 comments

Comments

@morgz
Copy link

morgz commented Jul 16, 2011

When you create a view it doesn't create any migration code in the schema. If you rolback/reset you need to delete your schema.

Using the rails_sql_view gem fixes this as it dumps the schema correctly.

I used my fork of the rails_sql_view gem

s.add_dependency('rails_sql_views') #needs the 'rails_sql_views', :git => 'git://github.com/morgz/rails_sql_views.git' fork. Set this in your apps bundle

Don't know how to properly add :git => to the s.add_dependency line...

My fork has this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant