Sha256: f8ef46efb6f448fa48cef5c89e18e612672239745718f5463c2df38b57a99cdb

Contents?: true

Size: 223 Bytes

Versions: 1

Compression:

Stored size: 223 Bytes

Contents

require 'appliction_record'

class Peopleable < ApplicationRecord
	belongs_to :people
	belongs_to :peopleable, polymorphic: true
end

class People < ApplicationRecord
	has_many :peopleables
	self.table_name = "peoples"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iatelier-0.1.3 lib/iatelier/models/people.rb