mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-23 00:16:21 +08:00
14 lines
372 B
Ruby
14 lines
372 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddRepositorySnapshots < ActiveRecord::Migration[6.0]
|
|
def change
|
|
change_table :repositories, bulk: true do |t|
|
|
t.boolean :snapshot, default: false
|
|
t.bigint :parent_id, null: true
|
|
t.bigint :my_module_id, null: true, index: true
|
|
end
|
|
|
|
add_column :repository_rows, :parent_id, :bigint, null: true
|
|
end
|
|
end
|