mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
12 lines
307 B
Ruby
12 lines
307 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddStatusToImports < ActiveRecord::Migration[8.0]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_column :imports, :status, :integer, default: 0, null: false
|
|
add_index :imports, :status, algorithm: :concurrently
|
|
|
|
Import.update_all(status: :completed)
|
|
end
|
|
end
|