Merge pull request #171 from openHPI/remove-fileid-from-structured-errors
Remove file_id from structured_errors
This commit is contained in:
@ -0,0 +1,5 @@
|
|||||||
|
class RemoveFileIdFromStructuredErrors < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
remove_column :structured_errors, :file_id
|
||||||
|
end
|
||||||
|
end
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
@ -325,7 +325,6 @@ ActiveRecord::Schema.define(version: 20180226131340) do
|
|||||||
|
|
||||||
create_table "structured_errors", force: :cascade do |t|
|
create_table "structured_errors", force: :cascade do |t|
|
||||||
t.integer "error_template_id"
|
t.integer "error_template_id"
|
||||||
t.integer "file_id"
|
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.integer "submission_id"
|
t.integer "submission_id"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FactoryBot.define do
|
FactoryBot.define do
|
||||||
factory :structured_error do
|
factory :structured_error do
|
||||||
error_template nil
|
error_template nil
|
||||||
file nil
|
submission nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user