From c7d32e86115830e3a494c1d60e69122ea5e65c6a Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 2 Dec 2011 22:15:58 +0100 Subject: [PATCH] Added an invoice comment field to the task to store what the comment was --- stoptime.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stoptime.rb b/stoptime.rb index aa22496..c2a8154 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -113,6 +113,7 @@ module StopTime::Models # [name] description (String) # [fixed_cost] fixed cost of the task (Float) # [hourly_rate] hourly rate for the task (Float) + # [invoice_comment] extra comment for the invoice (String) # [created_at] time of creation (Time) # [updated_at] time of last update (Time) # @@ -447,6 +448,16 @@ module StopTime::Models end end + class InvoiceCommentsSupport < V 1.91 # :nodoc: + def self.up + add_column(Task.table_name, :invoice_comment, :string) + end + + def self.down + remove_column(Task.table_name, :invoice_comment) + end + end + end # StopTime::Models # = The Stop… Camping Time! controllers