Sha256: aa59b611121c92813ad0fa5fdf6d5d16b83f9dcca7390fb0f96f7ad50e188c88

Contents?: true

Size: 151 Bytes

Versions: 2

Compression:

Stored size: 151 Bytes

Contents

class CustomPrimaryKeyTask < ActiveRecord::Base
  acts_as_tenant(:account, foreign_key: "name", primary_key: "name")
  validates_presence_of :name
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_tenant-0.5.1 spec/dummy/app/models/custom_primary_key_task.rb
acts_as_tenant-0.5.0 spec/dummy/app/models/custom_primary_key_task.rb