mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
13 lines
453 B
Ruby
13 lines
453 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddArchiveToRepositoryRow < ActiveRecord::Migration[6.0]
|
|
def change
|
|
change_table :repository_rows, bulk: true do |t|
|
|
t.boolean :archived, default: false, null: false
|
|
t.datetime :archived_on
|
|
t.datetime :restored_on
|
|
t.references :archived_by, index: true, foreign_key: { to_table: :users }
|
|
t.references :restored_by, index: true, foreign_key: { to_table: :users }
|
|
end
|
|
end
|
|
end
|