diff --git a/app/models/website.rb b/app/models/website.rb index dcc5fb4b..c088e92b 100644 --- a/app/models/website.rb +++ b/app/models/website.rb @@ -2,7 +2,7 @@ class Website < ActiveRecord::Base has_many :subscribers, dependent: :destroy has_many :grouped_issues, dependent: :destroy has_many :website_members, -> { uniq }, autosave: true - has_many :users, through: :website_members + has_many :members, through: :website_members validates :title, presence: true validates :domain, presence: true