scinote-web/db/migrate/20200331183640_add_repository_snapshots.rb

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