How To : Add 'active_record_shards' Rake Tasks to Rails Application

The 'active_record_shards' gem has its own implementation for the db rake tasks (like create, drop, etc) in its 'lib/active_record_shards/tasks.rb' file. To get this rake tasks into your rails application, add the below lines at the bottom of the Rakefile of your application.

require 'active_record_shards/tasks'

No comments:

Post a Comment