Commit 4ba1d451 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Check for colum existance for packages_enabled default value

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 85dd25f1
...@@ -83,8 +83,10 @@ module EE ...@@ -83,8 +83,10 @@ module EE
validates :mirror_user, presence: true validates :mirror_user, presence: true
end end
if column_names.include? :packages_enabled
default_value_for :packages_enabled, true default_value_for :packages_enabled, true
end end
end
module ClassMethods module ClassMethods
def search_by_visibility(level) def search_by_visibility(level)
......
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