mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Fix includes in transactions [SCI-4251]
This commit is contained in:
parent
1c33885754
commit
fc4cd6d14c
2 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('app/helpers/database_helper')
|
||||
|
||||
class CreateRepositoryStatusItems < ActiveRecord::Migration[6.0]
|
||||
include DatabaseHelper
|
||||
|
||||
def up
|
||||
create_table :repository_status_items do |t|
|
||||
t.string :status, null: false
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('app/helpers/database_helper')
|
||||
|
||||
class CreateRepositoryChecklists < ActiveRecord::Migration[6.0]
|
||||
include DatabaseHelper
|
||||
|
||||
def up
|
||||
create_table :repository_checklist_values do |t|
|
||||
t.references :created_by, index: true, foreign_key: { to_table: :users }, null: true
|
||||
|
|
Loading…
Reference in a new issue