summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-04-09 13:36:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-04-09 13:36:25 +0300
commitc5cdd07899df5cc5d87c514a7649979056fcced7 (patch)
tree770bc3a810a53d25fee9685a9a498b9be5537cc5 /app/models/note.rb
parent9a02e27b84589856b41e171493aa441add497ac1 (diff)
downloadgitlab-ce-c5cdd07899df5cc5d87c514a7649979056fcced7.tar.gz
Add values to default fields to prevent 500 error when migrate from MySQL to Postgres
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 906de4855ab..d666d5d52c8 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -23,6 +23,8 @@ require 'file_size_validator'
class Note < ActiveRecord::Base
include Mentionable
+ default_value_for :system, false
+
attr_accessible :note, :noteable, :noteable_id, :noteable_type, :project_id,
:attachment, :line_code, :commit_id
attr_mentionable :note