db/migrate/20190622161264_add_welcome_notification.decidim.rb
# frozen_string_literal: true
# This migration comes from decidim (originally 20181029121244)
class AddWelcomeNotification < ActiveRecord::Migration[5.2]
def change
change_table :decidim_organizations do |t|
t.boolean :send_welcome_notification, null: false, default: false
t.jsonb :welcome_notification_subject, null: true
t.jsonb :welcome_notification_body, null: true
end
execute "UPDATE decidim_organizations SET send_welcome_notification = 'true'"
end
end