This is an extract from the original and awesome mysql2 repository. If you do not need the latest and greatest of the mysql2-gem, you can and maybe should stick to mysql2, version ~> 0.2.18
Add this line to your application's Gemfile:
And then execute:
Rails without Gemfile shoudld either be ported to be using Bundler (you can thank me later) or you can do what you probably would do anyway: Add the following line to the appropriate environment-file(s).
Or install it yourself as:
$ gem install activerecord-mysql2-adapter
It's giving you a connection between the gems activerecord and mysql2. You are using this one most likely implicitly.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
Most of the credit goes to the contributors and maintainers of mysql2. I just copied the files. So, If you need professional Copy-Paste-work, contact me. :)
The original work is under the MIT-LICENSE and so is this.