7833c04d3d
make tests work make posts from python work
10 lines
382 B
Ruby
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
|