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.

12 lines

  1. class Template < ApplicationRecord
  2. attribute :targets, :targets
  3. has_many :targets
  4. validates :name, uniqueness: true
  5. def self.[](name)
  6. self.where(name: name).first
  7. end
  8. end