Sha256: f51955e4b45bad61b9b3c71a18131b1de7d39ae9e05e670032763dc2348a2db2

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

class Account < ActiveRecord::Base
  # attributes: id, name, updated_at, created_at
  not_sharded

  has_many :tickets
end

class Ticket < ActiveRecord::Base
  # attributes: id, title, account_id, updated_at, created_at
  belongs_to :account
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_shards-2.2.0 test/models.rb
active_record_shards-2.0.0 test/models.rb
active_record_shards-2.0.0.beta5 test/models.rb
active_record_shards-2.0.0.beta2 test/models.rb
active_record_shards-2.0.0.beta1 test/models.rb