Skip to content

mysql2 adapter not loaded when railtie runs #62

@ak47

Description

@ak47

I have a new Rails 4.2.1 app, followed usual Readme setup with Gemfile and placed "include ActiveUUID::UUID" line in my model. However, every time I run specs or rails console, the activeuuid patches have not been applied.

I added a break to the .apply method in ActiveUUID::Patches, and the mysql2 adapter,
ActiveRecord::ConnectionAdapters::Mysql2Adapter
is not defined at that point.

The result, if I start a console, is that I need to do a manual "ActiveUUID::Patches.apply!" to get things working.

Anybody else see this? Am I doing something wrong?

Odd part is, I have a Rails 4.2.0 app using activeuuid and all is good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions