Commit 5ebdbfab8443707aaff8d5a006f4968bd7b7c489

Authored by Dmitriy Zaporozhets
2 parents db80c149 ccd617e5

Merge branch 'pg_fixes' into 'master'

Postgres fixes

For applications migrated from MySQL to PostreSQL it fixes some issues
Fixes #1060
Showing 2 changed files with 6 additions and 0 deletions   Show diff stats
app/models/project.rb
... ... @@ -28,6 +28,8 @@ class Project < ActiveRecord::Base
28 28 include Gitlab::VisibilityLevel
29 29 extend Enumerize
30 30  
  31 + default_value_for :imported, false
  32 +
31 33 ActsAsTaggableOn.strict_case_match = true
32 34  
33 35 attr_accessible :name, :path, :description, :issues_tracker, :label_list,
... ...
app/models/web_hook.rb
... ... @@ -17,6 +17,10 @@
17 17 class WebHook < ActiveRecord::Base
18 18 include HTTParty
19 19  
  20 + default_value_for :push_events, true
  21 + default_value_for :issues_events, false
  22 + default_value_for :merge_requests_events, false
  23 +
20 24 attr_accessible :url
21 25  
22 26 # HTTParty timeout
... ...