2016-06-09 17:49:38 +02:00
|
|
|
class AddProcedureStatus < ActiveRecord::Migration
|
2018-03-06 13:44:29 +01:00
|
|
|
class Procedure < ApplicationRecord
|
2016-06-09 17:49:38 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def change
|
|
|
|
add_column :procedures, :published, :boolean, default: false, null: false
|
|
|
|
Procedure.all.each do |procedure|
|
|
|
|
procedure.published = true
|
|
|
|
procedure.save!
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|