hummingbird-me/kitsu-server

View on GitHub
app/models/media_production.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
83%
class MediaProduction < ApplicationRecord
  enum role: %i[producer licensor studio serialization]

  belongs_to :media, polymorphic: true, inverse_of: :productions
  belongs_to :company, class_name: 'Producer'

  def rails_admin_label
    company.name
  end
end