Merge pull request #2327 from okriuchykhin/ok_SCI_4251

Fix includes in transactions [SCI-4251]
This commit is contained in:
Alex Kriuchykhin 2020-01-16 17:27:15 +01:00 committed by GitHub
commit 71f95f0a9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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