Merge pull request #171 from openHPI/remove-fileid-from-structured-errors

Remove file_id from structured_errors
This commit is contained in:
rteusner
2018-05-16 14:42:35 +02:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,5 @@
class RemoveFileIdFromStructuredErrors < ActiveRecord::Migration
def change
remove_column :structured_errors, :file_id
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180226131340) do
ActiveRecord::Schema.define(version: 20180515110030) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -325,7 +325,6 @@ ActiveRecord::Schema.define(version: 20180226131340) do
create_table "structured_errors", force: :cascade do |t|
t.integer "error_template_id"
t.integer "file_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "submission_id"

View File

@ -1,6 +1,6 @@
FactoryBot.define do
factory :structured_error do
error_template nil
file nil
submission nil
end
end