# HG changeset patch # User Nattee Niparnan # Date 2016-10-08 05:04:59 # Node ID 6d4fad14a7fec48b598ec9e85071084fdb122404 # Parent d4335f7f37b2651e737906eeb29f2e5f8523ca68 lengthen host field in grader_process diff --git a/db/migrate/20161008050135_modify_grader_process.rb b/db/migrate/20161008050135_modify_grader_process.rb new file mode 100644 --- /dev/null +++ b/db/migrate/20161008050135_modify_grader_process.rb @@ -0,0 +1,9 @@ +class ModifyGraderProcess < ActiveRecord::Migration + def up + change_column :grader_processes, :host, :string + end + + def down + change_column :grader_processes, :host, :string, limit: 20 + end +end diff --git a/db/schema.rb b/db/schema.rb --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20150916054105) do +ActiveRecord::Schema.define(:version => 20161008050135) do create_table "announcements", :force => true do |t| t.string "author" @@ -66,12 +66,12 @@ end create_table "grader_processes", :force => true do |t| - t.string "host", :limit => 20 + t.string "host" t.integer "pid" t.string "mode" t.boolean "active" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false t.integer "task_id" t.string "task_type" t.boolean "terminated"