Open dvmonroe opened 6 years ago
wasted so much of my time. any solution to this ?
Provisionally, I've solved it this way in config/initializers/acts_as_taggable_on.rb
.
begin
ActsAsTaggableOn.force_binary_collation = true
rescue ActiveRecord::NoDatabaseError => err
Rails.logger.error err
end
I hope that this issue will be fixed.
Faced this issue today.
@shuuuuun workaround solved it for me.
Versions ActsAsTaggableOn: 6.0 Rails: 5.2 Ruby: 2.4.2
Steps to reproduce
Expected Behavior Able to successfully run
rails db:create
.Actual Behavior
Utils.connection
is blindly expecting an AR connection leaving the end user no choice but to wrap the initializer in a conditional that rescues fromActiveRecord::NoDatabaseError
.