Merge branch 'rs-remove-wall_enabled' into 'master'
Remove `wall_enabled` field from Project See merge request !4089
This commit is contained in:
commit
90ae445ba9
6 changed files with 6 additions and 7 deletions
|
@ -10,7 +10,6 @@
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
|
||||||
# merge_requests_enabled :boolean default(TRUE), not null
|
# merge_requests_enabled :boolean default(TRUE), not null
|
||||||
# wiki_enabled :boolean default(TRUE), not null
|
# wiki_enabled :boolean default(TRUE), not null
|
||||||
# namespace_id :integer
|
# namespace_id :integer
|
||||||
|
@ -67,7 +66,6 @@ class Project < ActiveRecord::Base
|
||||||
default_value_for :merge_requests_enabled, gitlab_config_features.merge_requests
|
default_value_for :merge_requests_enabled, gitlab_config_features.merge_requests
|
||||||
default_value_for :builds_enabled, gitlab_config_features.builds
|
default_value_for :builds_enabled, gitlab_config_features.builds
|
||||||
default_value_for :wiki_enabled, gitlab_config_features.wiki
|
default_value_for :wiki_enabled, gitlab_config_features.wiki
|
||||||
default_value_for :wall_enabled, false
|
|
||||||
default_value_for :snippets_enabled, gitlab_config_features.snippets
|
default_value_for :snippets_enabled, gitlab_config_features.snippets
|
||||||
default_value_for(:shared_runners_enabled) { current_application_settings.shared_runners_enabled }
|
default_value_for(:shared_runners_enabled) { current_application_settings.shared_runners_enabled }
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ production: &base
|
||||||
issues: true
|
issues: true
|
||||||
merge_requests: true
|
merge_requests: true
|
||||||
wiki: true
|
wiki: true
|
||||||
wall: false
|
|
||||||
snippets: false
|
snippets: false
|
||||||
visibility_level: "private" # can be "private" | "internal" | "public"
|
visibility_level: "private" # can be "private" | "internal" | "public"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveWallEnabledFromProjects < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
remove_column :projects, :wall_enabled, :boolean, default: true, null: false
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20160421130527) do
|
ActiveRecord::Schema.define(version: 20160508194200) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -728,7 +728,6 @@ ActiveRecord::Schema.define(version: 20160421130527) do
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.integer "creator_id"
|
t.integer "creator_id"
|
||||||
t.boolean "issues_enabled", default: true, null: false
|
t.boolean "issues_enabled", default: true, null: false
|
||||||
t.boolean "wall_enabled", default: true, null: false
|
|
||||||
t.boolean "merge_requests_enabled", default: true, null: false
|
t.boolean "merge_requests_enabled", default: true, null: false
|
||||||
t.boolean "wiki_enabled", default: true, null: false
|
t.boolean "wiki_enabled", default: true, null: false
|
||||||
t.integer "namespace_id"
|
t.integer "namespace_id"
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
|
||||||
# merge_requests_enabled :boolean default(TRUE), not null
|
# merge_requests_enabled :boolean default(TRUE), not null
|
||||||
# wiki_enabled :boolean default(TRUE), not null
|
# wiki_enabled :boolean default(TRUE), not null
|
||||||
# namespace_id :integer
|
# namespace_id :integer
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# creator_id :integer
|
# creator_id :integer
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
# issues_enabled :boolean default(TRUE), not null
|
||||||
# wall_enabled :boolean default(TRUE), not null
|
|
||||||
# merge_requests_enabled :boolean default(TRUE), not null
|
# merge_requests_enabled :boolean default(TRUE), not null
|
||||||
# wiki_enabled :boolean default(TRUE), not null
|
# wiki_enabled :boolean default(TRUE), not null
|
||||||
# namespace_id :integer
|
# namespace_id :integer
|
||||||
|
|
Loading…
Reference in a new issue