5
0
Fork 0
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:
f 2023-03-25 13:48:30 -03:00
parent 42b2549f09
commit c62d0d3a72

View file

@ -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