diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2016-02-02 13:29:41 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-19 17:24:59 +0100 |
commit | 433de7baca62060cec1adda7183ede1acdd03da7 (patch) | |
tree | 00df11b2ca191098ee4fd9e24352dd4611287603 /db | |
parent | ede451c851f2bc5f445a1ff7a418735f4a98405f (diff) | |
download | gitlab-ce-433de7baca62060cec1adda7183ede1acdd03da7.tar.gz |
Remove boolean erase column from ci build and foreign key
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160202091601_add_eraseable_to_ci_build.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/db/migrate/20160202091601_add_eraseable_to_ci_build.rb b/db/migrate/20160202091601_add_eraseable_to_ci_build.rb index dcd8bcba324..3db7180c1ae 100644 --- a/db/migrate/20160202091601_add_eraseable_to_ci_build.rb +++ b/db/migrate/20160202091601_add_eraseable_to_ci_build.rb @@ -1,8 +1,6 @@ class AddEraseableToCiBuild < ActiveRecord::Migration def change - add_column :ci_builds, :erased, :boolean, default: false add_reference :ci_builds, :erased_by, references: :users, index: true - add_foreign_key :ci_builds, :users, column: :erased_by_id add_column :ci_builds, :erased_at, :datetime end end diff --git a/db/schema.rb b/db/schema.rb index 931f2ddf534..2d1c6dbf0e4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -129,7 +129,6 @@ ActiveRecord::Schema.define(version: 20160209130428) do t.text "artifacts_file" t.integer "gl_project_id" t.text "artifacts_metadata" - t.boolean "erased", default: false t.integer "erased_by_id" t.datetime "erased_at" end @@ -923,5 +922,4 @@ ActiveRecord::Schema.define(version: 20160209130428) do add_index "web_hooks", ["created_at", "id"], name: "index_web_hooks_on_created_at_and_id", using: :btree add_index "web_hooks", ["project_id"], name: "index_web_hooks_on_project_id", using: :btree - add_foreign_key "ci_builds", "users", column: "erased_by_id" end |