Sha256: 4f40f94bd44b692a6b7eedb8ac6bf748754cfec76a78ef79707e927fe5328e59

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

class Content < ApplicationRecord
  belongs_to :detail, polymorphic: true
  belongs_to :author, class_name: 'User', foreign_key: 'author_id', optional: true

end

# :picture_key, :string
# :title, :string
# :body, :text
# :knowable_id, :integer
# :knowable_type, :string
# :items_count, :integer, default: 0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_detail-0.0.1 app/models/rails_detail/content.rb