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

undefined method `create_view' #41

Open
ftheo opened this issue Nov 28, 2011 · 4 comments
Open

undefined method `create_view' #41

ftheo opened this issue Nov 28, 2011 · 4 comments

Comments

@ftheo
Copy link

ftheo commented Nov 28, 2011

When trying to follow something similar to example with MySQL version 5.5.17 with Rails 3.1 I get the following error

== CreateBooks: migrating ====================================================
-- create_table(:books)
-> 0.0073s
citier -> Root Class
citier -> table_name -> master_objects
citier -> Non Root Class
citier -> table_name -> books
citier -> tablename (view) -> view_books
-- create_view("view_books", "SELECT master_objects.id, info,type,created_at,updated_at,title,created_at,updated_at FROM master_objects, books WHERE master_objects.id = books.id")
rake aborted!
An error has occurred, all later migrations canceled:

undefined method `create_view' for #CreateBooks:0x007f8e3ca00c40

@ulitiy
Copy link

ulitiy commented Dec 26, 2011

+1
That's a problem with rails_sql_views gem, but it's not clear what to do now to use citier

@ulitiy
Copy link

ulitiy commented Dec 26, 2011

Try
gem 'rails_sql_views', git: 'https://github.com/morgz/rails_sql_views.git'
in your gemfile and
require 'rails_sql_views'
in your environment.rb
(as it's mentioned in citier gemspec)

@fregas
Copy link

fregas commented Feb 17, 2012

That fixed my issue. Going to see if I continue to have others with rails 3.2, but looks pretty awesome so far.

@Sivli-Embir
Copy link

Fixed my issue (well this Issue #32 did, same idea though). If this will not be fixed soon you many want to add this to the README. Thanks for the great gem!

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

4 participants