Add Testrun to schema

This commit is contained in:
Maximilian Grundke
2016-03-02 14:52:39 +01:00
parent 551552279b
commit b66e9fc05d
3 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,13 @@
class CreateTestruns < ActiveRecord::Migration
def change
create_table :testruns do |t|
t.boolean :passed
t.text :output
t.belongs_to :file
t.belongs_to :submission
t.timestamps
end
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: 20160204111716) do
ActiveRecord::Schema.define(version: 20160302133540) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -211,4 +211,13 @@ ActiveRecord::Schema.define(version: 20160204111716) do
t.datetime "updated_at"
end
create_table "testruns", force: true do |t|
t.boolean "passed"
t.text "output"
t.integer "file_id"
t.integer "submission_id"
t.datetime "created_at"
t.datetime "updated_at"
end
end