trabajo-afectivo/db/migrate/20180709020509_add_group_direction_to_overviews.rb

9 lines
257 B
Ruby
Raw Normal View History

class AddGroupDirectionToOverviews < ActiveRecord::Migration[5.1]
def change
# return if it's a new setup
return if !Setting.find_by(name: 'system_init_done')
add_column :overviews, :group_direction, :string, limit: 250, null: true
end
end