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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 23:34:05 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 23:34:05 +0400
commit406a0c809b3c10d8fb2754cf626094b98ee78aeb (patch)
tree0bf5ad709820620873f7a5b713b83c75c22be164 /db
parent85007434645c817e7674003bbdda0674287dd106 (diff)
GitLabCi Service imtegration
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20121120103700_add_active_to_service.rb5
-rw-r--r--db/migrate/20121120113838_add_project_url_to_service.rb5
-rw-r--r--db/schema.rb10
3 files changed, 16 insertions, 4 deletions
diff --git a/db/migrate/20121120103700_add_active_to_service.rb b/db/migrate/20121120103700_add_active_to_service.rb
new file mode 100644
index 00000000000..f45ef52e6f0
--- /dev/null
+++ b/db/migrate/20121120103700_add_active_to_service.rb
@@ -0,0 +1,5 @@
+class AddActiveToService < ActiveRecord::Migration
+ def change
+ add_column :services, :active, :boolean, default: false, null: false
+ end
+end
diff --git a/db/migrate/20121120113838_add_project_url_to_service.rb b/db/migrate/20121120113838_add_project_url_to_service.rb
new file mode 100644
index 00000000000..13ffbdb192f
--- /dev/null
+++ b/db/migrate/20121120113838_add_project_url_to_service.rb
@@ -0,0 +1,5 @@
+class AddProjectUrlToService < ActiveRecord::Migration
+ def change
+ add_column :services, :project_url, :string, null: true
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index b11542704af..27b1f4aa84a 100644
--- 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 => 20121120051432) do
+ActiveRecord::Schema.define(:version => 20121120113838) do
create_table "events", :force => true do |t|
t.string "target_type"
@@ -131,9 +131,11 @@ ActiveRecord::Schema.define(:version => 20121120051432) do
t.string "type"
t.string "title"
t.string "token"
- t.integer "project_id", :null => false
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.integer "project_id", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.boolean "active", :default => false, :null => false
+ t.string "project_url"
end
create_table "snippets", :force => true do |t|