noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

Álax Alves gitlab at mg.gitlab.com
Wed Jun 13 11:04:58 BRT 2018


Álax Alves commented on a discussion on lib/tasks/db.rake:

>        # Tries to initialize the application.
>        # It will fail if the database does not exist
>        Rake::Task['environment'].invoke
> +      ActiveRecord::Base.connection

It is necessary because invoking the connection object like this returns the actual associated connection db/class. I have checked some other solutions and this seemed to be the "default" workaround.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_81327749
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180613/2f9d6f74/attachment-0001.html>


More information about the Noosfero-dev mailing list