diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-04-17 14:28:59 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-04-17 14:28:59 +0300 |
commit | e803e3f26f771b8e424d251951c88892858cb6b1 (patch) | |
tree | 0c81ac744cae4d73322bfcbaaa9275708d3fb077 /db | |
parent | cca6ded9fd1874863a265ca4d96c243e637ec3de (diff) | |
download | gitlab-ci-e803e3f26f771b8e424d251951c88892858cb6b1.tar.gz |
cleanup build model
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150417000045_cleanup_the_build_model.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/db/migrate/20150417000045_cleanup_the_build_model.rb b/db/migrate/20150417000045_cleanup_the_build_model.rb new file mode 100644 index 0000000..1ade714 --- /dev/null +++ b/db/migrate/20150417000045_cleanup_the_build_model.rb @@ -0,0 +1,9 @@ +class CleanupTheBuildModel < ActiveRecord::Migration + def change + remove_column :builds, :push_data + remove_column :builds, :before_sha + remove_column :builds, :ref + remove_column :builds, :sha + remove_column :builds, :tmp_file + end +end diff --git a/db/schema.rb b/db/schema.rb index 65a1032..f16ae4c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,24 +11,19 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150415142013) do +ActiveRecord::Schema.define(version: 20150417000045) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "builds", force: true do |t| t.integer "project_id" - t.string "ref" t.string "status" t.datetime "finished_at" t.text "trace" t.datetime "created_at" t.datetime "updated_at" - t.string "sha" t.datetime "started_at" - t.string "tmp_file" - t.string "before_sha" - t.text "push_data" t.integer "runner_id" t.integer "commit_id" t.float "coverage" @@ -38,10 +33,8 @@ ActiveRecord::Schema.define(version: 20150415142013) do add_index "builds", ["commit_id"], name: "index_builds_on_commit_id", using: :btree add_index "builds", ["project_id", "commit_id"], name: "index_builds_on_project_id_and_commit_id", using: :btree - add_index "builds", ["project_id", "sha"], name: "index_builds_on_project_id_and_sha", using: :btree add_index "builds", ["project_id"], name: "index_builds_on_project_id", using: :btree add_index "builds", ["runner_id"], name: "index_builds_on_runner_id", using: :btree - add_index "builds", ["sha"], name: "index_builds_on_sha", using: :btree create_table "commits", force: true do |t| t.integer "project_id" |