Commit 1e02e531 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Enable packages feature for projects by default

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 47899fb3
......@@ -2229,7 +2229,7 @@ ActiveRecord::Schema.define(version: 20180823132905) do
t.boolean "mirror_overwrites_diverged_branches"
t.boolean "pages_https_only", default: true
t.string "external_webhook_token"
t.boolean "packages_enabled", default: false, null: false
t.boolean "packages_enabled", default: true, null: false
end
add_index "projects", ["ci_id"], name: "index_projects_on_ci_id", using: :btree
......
......@@ -7,7 +7,7 @@ class AddPackagesEnabledToProject < ActiveRecord::Migration
disable_ddl_transaction!
def up
add_column_with_default(:projects, :packages_enabled, :boolean, default: false, allow_null: false)
add_column_with_default(:projects, :packages_enabled, :boolean, default: true, allow_null: false)
end
def down
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment