Closed alexvbush closed 6 years ago
my config/vanity.yml
looks like this
default: &default
#adapter: postgresql
adapter: active_record
active_record_adapter: postgresql
encoding: unicode
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: ios-interview-guide-website_development
username: ios-interview-guide-website
test:
<<: *default
database: ios-interview-guide-website_test
username: ios-interview-guide-website
collecting: false
production:
<<: *default
database: ios-interview-guide-website_production
username: ios-interview-guide-website
password: <%= ENV['IOS-INTERVIEW-GUIDE-WEBSITE_DATABASE_PASSWORD'] %>
Hey, sorry for the slow response on this. As a workaround, does adding require Vanity::Adapters::ActiveRecordAdapter
at the top of the file by hand fix the problem?
Hey, I'll get to test it in a few days On Tue, Feb 7, 2017 at 6:40 PM Phillip Baker notifications@github.com wrote:
Hey, sorry for the slow response on this. As a workaround, does adding require Vanity::Adapters::ActiveRecordAdapter at the top of the file by hand fix the problem?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/assaf/vanity/issues/321#issuecomment-278212688, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS_Jew-m8qPBhu7-wSzN0Y6CdHwuhoDks5raSswgaJpZM4L0tjS .
anyone any luck with this?
Same issue, loading fine in console, breaking migration with no including or requiring fixing it.
Using require "vanity/adapters/active_record_adapter"
at the top of the migration seems to fix this issue for me.
Hi, I'm trying to setup Vanity with a brand new Rails 5 app with Postgres. I've added
gem "vanity"
to myGemfile
, launchedbundle exec rails generate vanity
which created the following migration file:But when I next run
be rails db:migrate
it throws the following error:Seems like
Vanity::Adapters::ActiveRecordAdapter
isn't loaded, although, when I runrails consolse
I am able to callVanity::Adapters::ActiveRecordAdapter
. Can anyone suggest a solution?