5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 06:01:42 +00:00
panel/db/migrate/20230328200129_add_consent_to_usuaries.rb

13 lines
512 B
Ruby
Raw Normal View History

2023-03-28 21:18:53 +00:00
# frozen_string_literal: true
# Agrega consentimientos a les usuaries. No usamos un loop de
# Usuarie::CONSENT_FIELDS porque quizás agreguemos campos luego.
class AddConsentToUsuaries < ActiveRecord::Migration[6.1]
def change
add_column :usuaries, :privacy_policy_accepted_at, :datetime
add_column :usuaries, :terms_of_service_accepted_at, :datetime
add_column :usuaries, :code_of_conduct_accepted_at, :datetime
add_column :usuaries, :available_for_feedback_accepted_at, :datetime
end
end