26. class TestMasterShard < ActiveRecord::Base self.abstract_class = true establish_connection "#{ENV['RAILS_ENV']}_test_master" end class FooMaster < TestMasterShard self.table_name = 'foo' attr_accessible :name validates :content_id, {presence: true} end 28. # config.include RSpec::Octopus config.before do shards = ActiveRecord::Base.connection_proxy.instance_variable_get(:@shards) @connections =