Fix missing/incorrect Model specifications in migrations
We need to define the required models within the migration (not below) to work reliably.
This commit is contained in:

committed by
Sebastian Serth

parent
cef961a1e7
commit
6c44ffbd5c
@@ -1,6 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddCauseToTestruns < ActiveRecord::Migration[4.2]
|
||||
class Testrun < ApplicationRecord
|
||||
belongs_to :submission, optional: true
|
||||
end
|
||||
|
||||
class Submission < ApplicationRecord
|
||||
end
|
||||
|
||||
def up
|
||||
add_column :testruns, :cause, :string
|
||||
Testrun.reset_column_information
|
||||
|
Reference in New Issue
Block a user