mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
13 lines
447 B
Ruby
13 lines
447 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddArchiveToRepository < ActiveRecord::Migration[6.0]
|
|
def change
|
|
change_table :repositories, 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
|