bibendi/twinkle

View on GitHub
app/models/channel.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Channel < ActiveRecord::Base
  belongs_to :client, required: true

  has_many :channel_transports
  has_many :transports, through: :channel_transports

  validates :name, presence: true, uniqueness: {scope: :client_id}
end