From 051978a17517d4db475901aa4f8399f57c04e191 Mon Sep 17 00:00:00 2001 From: jwollert Date: Fri, 28 Jan 2011 16:53:12 +0100 Subject: [PATCH] fix migration to allow NULL when default is NULL, too --- db/migrate/20101111150110_adjust_cost_query_layout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20101111150110_adjust_cost_query_layout.rb b/db/migrate/20101111150110_adjust_cost_query_layout.rb index 14d6bd46d6..527517a4c2 100644 --- a/db/migrate/20101111150110_adjust_cost_query_layout.rb +++ b/db/migrate/20101111150110_adjust_cost_query_layout.rb @@ -4,7 +4,7 @@ class AdjustCostQueryLayout < ActiveRecord::Migration remove_column :cost_queries, :group_by remove_column :cost_queries, :granularity - add_column :cost_queries, :yamlized, :string, :null => false + add_column :cost_queries, :yamlized, :string, :null => true end def self.down