view .svn/pristine/a8/a89c2391944884496b2422d8187b6c5f71ac2c07.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
line wrap: on
line source
class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration
  def self.up
    add_column :workflows, :assignee, :boolean, :null => false, :default => false
    add_column :workflows, :author, :boolean, :null => false, :default => false
    Workflow.update_all("assignee = #{Workflow.connection.quoted_false}")
    Workflow.update_all("author = #{Workflow.connection.quoted_false}")
  end

  def self.down
    remove_column :workflows, :assignee
    remove_column :workflows, :author
  end
end