mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:51:41 +00:00
fixup! feat: agregar una descripción corta a la licencia
This commit is contained in:
parent
42b2549f09
commit
c62d0d3a72
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ class Licencia < ApplicationRecord
|
||||||
translates :name, type: :string, locale_accessors: true
|
translates :name, type: :string, locale_accessors: true
|
||||||
translates :url, type: :string, locale_accessors: true
|
translates :url, type: :string, locale_accessors: true
|
||||||
translates :description, type: :text, 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
|
translates :deed, type: :text, locale_accessors: true
|
||||||
|
|
||||||
has_many :sites
|
has_many :sites
|
||||||
|
@ -14,5 +15,6 @@ class Licencia < ApplicationRecord
|
||||||
validates :name, presence: true, uniqueness: true
|
validates :name, presence: true, uniqueness: true
|
||||||
validates :url, presence: true
|
validates :url, presence: true
|
||||||
validates :description, presence: true
|
validates :description, presence: true
|
||||||
|
validates :short_description, presence: true
|
||||||
validates :deed, presence: true
|
validates :deed, presence: true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue