Looking for changes on website content https://projet-alice-demo.herokuapp.com/diffs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
233B

  1. class Group < ApplicationRecord
  2. attribute :targets, :targets
  3. belongs_to :template, optional: true
  4. has_many :targets
  5. has_many :sites
  6. validates :name, uniqueness: true
  7. def self.[](name)
  8. self.where(name: name).first
  9. end
  10. end