From d92ac33711666ac83543f67ff4ad7e6d2ea2d130 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Wed, 24 Nov 2010 17:35:15 +0100 Subject: [PATCH] remove more useless columns from cost query table --- ...101124150110_adjust_cost_query_layout_some_more.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20101124150110_adjust_cost_query_layout_some_more.rb diff --git a/db/migrate/20101124150110_adjust_cost_query_layout_some_more.rb b/db/migrate/20101124150110_adjust_cost_query_layout_some_more.rb new file mode 100644 index 0000000000..af4e869703 --- /dev/null +++ b/db/migrate/20101124150110_adjust_cost_query_layout_some_more.rb @@ -0,0 +1,11 @@ +class AdjustCostQueryLayoutSomeMore < ActiveRecord::Migration + def self.up + remove_column :cost_queries, :display_cost_entries + remove_column :cost_queries, :display_time_entries + end + + def self.down + add_column :cost_queries, :display_cost_entries, :boolean, :default => true + add_column :cost_queries, :display_time_entries, :boolean, :default => true + end +end