2017-09-08 08:28:34 +00:00
|
|
|
class SchedulerStatus < ActiveRecord::Migration[4.2]
|
2017-05-15 11:50:55 +00:00
|
|
|
def up
|
2017-09-07 13:50:46 +00:00
|
|
|
|
|
|
|
# return if it's a new setup
|
|
|
|
return if !Setting.find_by(name: 'system_init_done')
|
|
|
|
|
2017-05-15 11:50:55 +00:00
|
|
|
change_table :schedulers do |t|
|
2017-09-07 13:50:46 +00:00
|
|
|
t.string :error_message, null: true
|
|
|
|
t.string :status, null: true
|
2017-05-15 11:50:55 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|