parent
934a6069f0
commit
356de5e8a4
@ -1,5 +1,5 @@
|
||||
class TrustieHackathon < ApplicationRecord
|
||||
|
||||
validates_length_of :description, maximum: 500
|
||||
has_many :trustie_hacks, :dependent => :destroy
|
||||
|
||||
end
|
||||
|
@ -0,0 +1,6 @@
|
||||
class ModifyDescriotionLimitForHacks < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column :trustie_hackathons, :description, :text
|
||||
change_column :trustie_hacks, :description, :text
|
||||
end
|
||||
end
|
Loading…
Reference in new issue