mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
14 lines
448 B
Ruby
14 lines
448 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AddArchivedFlagToProjectFolders < ActiveRecord::Migration[6.0]
|
||
|
def change
|
||
|
change_table :project_folders, bulk: true do |t|
|
||
|
t.boolean :archived, default: false
|
||
|
t.references :archived_by, foreign_key: { to_table: :users }, index: false
|
||
|
t.datetime :archived_on
|
||
|
t.references :restored_by, foreign_key: { to_table: :users }, index: false
|
||
|
t.datetime :restored_on
|
||
|
end
|
||
|
end
|
||
|
end
|