vidpush/app/models/campaign.rb
Tyrel Souza 7833c04d3d add tests
make tests work
make posts from python work
2014-04-09 14:12:14 -04:00

10 lines
382 B
Ruby

class Campaign < ActiveRecord::Base
has_many :videolistings, :dependent => :delete_all
accepts_nested_attributes_for :videolistings
validates :clientid, presence: true, uniqueness: true
validates :billingcode, uniqueness: true
validates :listingcode, presence: true, uniqueness: true
validates :advertisername, presence: true
validates :websiteurl, presence: true
end