annotate db/migrate/20110220160626_add_workflows_assignee_and_author.rb @ 917:66ac47c3719b cannam_integration

Rename .text.html.erb and .text.plain.erb to .html.erb and .text.erb in line with the other mailer files
author Chris Cannam
date Tue, 06 Mar 2012 14:05:16 +0000
parents 051f544170fe
children 433d4f72a19b
rev   line source
Chris@245 1 class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration
Chris@245 2 def self.up
Chris@245 3 add_column :workflows, :assignee, :boolean, :null => false, :default => false
Chris@245 4 add_column :workflows, :author, :boolean, :null => false, :default => false
Chris@245 5 Workflow.update_all("assignee = #{Workflow.connection.quoted_false}")
Chris@245 6 Workflow.update_all("author = #{Workflow.connection.quoted_false}")
Chris@245 7 end
Chris@245 8
Chris@245 9 def self.down
Chris@245 10 remove_column :workflows, :assignee
Chris@245 11 remove_column :workflows, :author
Chris@245 12 end
Chris@245 13 end