vidpush/app/models/videolisting.rb

7 lines
168 B
Ruby

class Videolisting < ActiveRecord::Base
belongs_to :campaign
validates :videocode, presence: true, uniqueness: true
validates :producttypeid, presence: true
end