diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2017-03-18 02:06:11 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-03-18 02:06:11 +0300 |
commit | 12dd5ac22110bc3327297232d96f2afebaefc5eb (patch) | |
tree | c1ec703f9c7072df5097ba70c3e4e7c132a44a83 /db/migrate/20170222143317_drop_ci_projects.rb | |
parent | 94246c7aa01bd825953e6676f79aa9db51209822 (diff) |
All CI offline migrations
Diffstat (limited to 'db/migrate/20170222143317_drop_ci_projects.rb')
-rw-r--r-- | db/migrate/20170222143317_drop_ci_projects.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/db/migrate/20170222143317_drop_ci_projects.rb b/db/migrate/20170222143317_drop_ci_projects.rb new file mode 100644 index 00000000000..4db8658f36f --- /dev/null +++ b/db/migrate/20170222143317_drop_ci_projects.rb @@ -0,0 +1,34 @@ +class DropCiProjects < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + drop_table :ci_projects + end + + def down + create_table "ci_projects", force: :cascade do |t| + t.string "name" + t.integer "timeout", default: 3600, null: false + t.datetime "created_at" + t.datetime "updated_at" + t.string "token" + t.string "default_ref" + t.string "path" + t.boolean "always_build", default: false, null: false + t.integer "polling_interval" + t.boolean "public", default: false, null: false + t.string "ssh_url_to_repo" + t.integer "gitlab_id" + t.boolean "allow_git_fetch", default: true, null: false + t.string "email_recipients", default: "", null: false + t.boolean "email_add_pusher", default: true, null: false + t.boolean "email_only_broken_builds", default: true, null: false + t.string "skip_refs" + t.string "coverage_regex" + t.boolean "shared_runners_enabled", default: false + t.text "generated_yaml_config" + end + end +end |