mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
390 B
16 lines
390 B
# frozen_string_literal: true
|
|
|
|
class AddPreferencesToSubmitters < ActiveRecord::Migration[7.0]
|
|
class MigrationSubmitter < ApplicationRecord
|
|
self.table_name = 'submitters'
|
|
end
|
|
|
|
def change
|
|
add_column :submitters, :preferences, :text
|
|
|
|
MigrationSubmitter.where(preferences: nil).update_all(preferences: '{}')
|
|
|
|
change_column_null :submitters, :preferences, false
|
|
end
|
|
end
|