Mercurial > hg > soundsoftware-site
view .svn/pristine/a8/a89c2391944884496b2422d8187b6c5f71ac2c07.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +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