Commit 5ebdbfab authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'pg_fixes' into 'master'

Postgres fixes

For applications migrated from MySQL to PostreSQL it fixes some issues
Fixes #1060
parents db80c149 ccd617e5
...@@ -28,6 +28,8 @@ class Project < ActiveRecord::Base ...@@ -28,6 +28,8 @@ class Project < ActiveRecord::Base
include Gitlab::VisibilityLevel include Gitlab::VisibilityLevel
extend Enumerize extend Enumerize
default_value_for :imported, false
ActsAsTaggableOn.strict_case_match = true ActsAsTaggableOn.strict_case_match = true
attr_accessible :name, :path, :description, :issues_tracker, :label_list, attr_accessible :name, :path, :description, :issues_tracker, :label_list,
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
class WebHook < ActiveRecord::Base class WebHook < ActiveRecord::Base
include HTTParty include HTTParty
default_value_for :push_events, true
default_value_for :issues_events, false
default_value_for :merge_requests_events, false
attr_accessible :url attr_accessible :url
# HTTParty timeout # HTTParty timeout
......
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