mirror of https://github.com/docusealco/docuseal
parent
e4bb5466f5
commit
644b142798
@ -0,0 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddSourceToSubmissions < ActiveRecord::Migration[7.0]
|
||||
class MigrationSubmission < ApplicationRecord
|
||||
self.table_name = 'submissions'
|
||||
end
|
||||
|
||||
def up
|
||||
add_column :submissions, :source, :text
|
||||
|
||||
MigrationSubmission.where(source: nil).update_all(source: :invite)
|
||||
|
||||
change_column_null :submissions, :source, false
|
||||
end
|
||||
|
||||
def down
|
||||
drop_column :submissions, :source
|
||||
end
|
||||
end
|
||||
Loading…
Reference in new issue