From 8290253caf0a60094e52cee3a69f3b8caa6a85ad Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Fri, 28 Jan 2011 16:50:37 +0100 Subject: [PATCH] fix NOT NULL column with NULL value --- 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