Fix includes in transactions [SCI-4251]

This commit is contained in:
Oleksii Kriuchykhin 2020-01-16 17:14:20 +01:00
parent 1c33885754
commit fc4cd6d14c
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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