Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

undefined method tables' for class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter' #7

Open
tsdbrown opened this issue Nov 2, 2010 · 9 comments

Comments

@tsdbrown
Copy link

tsdbrown commented Nov 2, 2010

Can anybody help with this error when trying to migrate. Looks like it's trying to alias a method that doesn't exist.

pg (0.9.0)
rails 3.0.1

Thanks.

@tsdbrown
Copy link
Author

tsdbrown commented Nov 2, 2010

Looks like the commit http://github.com/aeden/rails_sql_views/commit/11231a1d2a56cf2e4b18ec9e6e408061a3b6d303 may have caused this.

When I added the unless method_defined?(:tables_with_views_included) back on it works again.

@ghost
Copy link

ghost commented Jul 10, 2011

I have the exactly similar issue when I try to migrate for postgreSQL . But the same migration works fine when I try with mySQL. Can you please elaborate on how to fix the issue ?

Thanks,

@wmarbut
Copy link

wmarbut commented Jan 4, 2012

I have this exact same issue. I'm running:

rails 3.0.10
rails_sql_views 0.8.0

The error that I get

bundle exec rake db:migrate
rake aborted!
undefined method `tables' for class `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter'

@gylaz
Copy link

gylaz commented Mar 15, 2012

Any plans on fixing this? I'm getting this error when using database_cleaner with truncation strategy.

@willsu
Copy link

willsu commented Apr 2, 2014

@gylaz, I'm running into this error now. Where you able to resolve this issue? Thanks.

@gylaz
Copy link

gylaz commented Apr 2, 2014

@willsu Sorry, I have no recollection of wether I solved this or not. I have not used this gem since then.

@willsu
Copy link

willsu commented Apr 2, 2014

@gylaz We were able to mitigate the issue by excluding the 'rails_sql_views' gem from out test environment. I'm sure that this will not be an option for some people, but it worked for our case.

group :development, :qa, :staging, :production do
  gem 'rails_sql_views', git: 'git://github.com/webhoernchen/rails_sql_views.git'
end

@mindaslab
Copy link

Am getting this bug

@badbabykosh
Copy link

this...I'm getting this bug also....lol...this bug STILL exist

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

No branches or pull requests

6 participants