activewarehouse / rails_sql_views

Rails SQL Views project extracted from ActiveWarehouse
http://activewarehouse.rubyforge.org/rails_sql_views
MIT License
140 stars 129 forks source link

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

Open tsdbrown opened 13 years ago

tsdbrown commented 13 years ago

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 commented 13 years ago

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 commented 13 years ago

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 commented 12 years ago

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 commented 12 years ago

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

willsu commented 10 years ago

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

gylaz commented 10 years ago

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

willsu commented 10 years ago

@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 commented 9 years ago

Am getting this bug

badbabykosh commented 3 years ago

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