You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20110220160626_add_workflows_assignee_and_author.rb 449B

1234567891011121314
  1. class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :workflows, :assignee, :boolean, :null => false, :default => false
  4. add_column :workflows, :author, :boolean, :null => false, :default => false
  5. WorkflowRule.update_all(:assignee => false)
  6. WorkflowRule.update_all(:author => false)
  7. end
  8. def self.down
  9. remove_column :workflows, :assignee
  10. remove_column :workflows, :author
  11. end
  12. end