Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2016-02-02 15:29:41 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-19 19:24:59 +0300
commit433de7baca62060cec1adda7183ede1acdd03da7 (patch)
tree00df11b2ca191098ee4fd9e24352dd4611287603 /db
parentede451c851f2bc5f445a1ff7a418735f4a98405f (diff)
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.rb2
-rw-r--r--db/schema.rb2
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