mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-20 01:16:22 +00:00
Merge branch 'issue-159' into panel.sutty.nl
This commit is contained in:
commit
a1dda37543
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ class Licencia < ApplicationRecord
|
|||
translates :name, type: :string, locale_accessors: true
|
||||
translates :url, type: :string, locale_accessors: true
|
||||
translates :description, type: :text, locale_accessors: true
|
||||
translates :short_description, type: :string, locale_accessors: true
|
||||
translates :deed, type: :text, locale_accessors: true
|
||||
|
||||
has_many :sites
|
||||
|
@ -14,5 +15,6 @@ class Licencia < ApplicationRecord
|
|||
validates :name, presence: true, uniqueness: true
|
||||
validates :url, presence: true
|
||||
validates :description, presence: true
|
||||
validates :short_description, presence: true
|
||||
validates :deed, presence: true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue