* Add inverse has_many relation betwen User and Ahoy::[Event|Visit ] * Add FKs and proper relations to HtmlVariant models
6 lines
158 B
Ruby
6 lines
158 B
Ruby
class HtmlVariantTrial < ApplicationRecord
|
|
belongs_to :html_variant
|
|
belongs_to :article, optional: true
|
|
|
|
validates :html_variant_id, presence: true
|
|
end
|