Sha256: 35bd0ca08c868064f2635ce81b36e54874f77e55864c65be9b6af8311aabb348
Contents?: true
Size: 478 Bytes
Versions: 5
Compression:
Stored size: 478 Bytes
Contents
class User < ActiveRecord::Base # shard by surrogate_key turntable :user_cluster, :id sequencer has_one :user_status has_many :cards_user end class UserStatus < ActiveRecord::Base # shard by other key turntable :user_cluster, :user_id sequencer belongs_to :user end class Card < ActiveRecord::Base belongs_to :cards_user end class CardsUser < ActiveRecord::Base turntable :user_cluster, :user_id sequencer belongs_to :user belongs_to :card end
Version data entries
5 entries across 5 versions & 1 rubygems