2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class AddVisibleBackToGroups < ActiveRecord::Migration[4.2]
|
2017-07-04 10:31:10 -04:00
|
|
|
def change
|
|
|
|
# add the visible column so it is delay dropped this cleans up some deploy issues
|
|
|
|
add_column :groups, :visible, :boolean, default: true, null: false
|
|
|
|
execute 'UPDATE groups set visible = false where visibility_level > 0'
|
|
|
|
end
|
|
|
|
end
|