From 708b5c0d3a5cf7ca15107ed02d0eb408401e3a63 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sat, 28 Jul 2012 03:26:49 +0900 Subject: Modity the :json_data_empty attribute from `:null => false` to `:null => true` to address ORA-01400 errors with Oracle enhanced adapter. The original commit 3c0bf043 requires :json_data_empty attribute has empty string OR null, then setting `:default => ""` is enough. --- activerecord/test/schema/schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index f48bab721f..6c919a2b02 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -42,7 +42,7 @@ ActiveRecord::Schema.define do # big varchar below. t.string :preferences, :null => true, :default => '', :limit => 1024 t.string :json_data, :null => true, :limit => 1024 - t.string :json_data_empty, :null => false, :default => "", :limit => 1024 + t.string :json_data_empty, :null => true, :default => "", :limit => 1024 t.references :account end -- cgit v1.2.3