diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2012-07-28 03:26:49 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2012-07-28 04:43:04 +0900 |
commit | 708b5c0d3a5cf7ca15107ed02d0eb408401e3a63 (patch) | |
tree | 2c361bc112ae69cb25307f860eaa266d89a272bc /activerecord/test/schema | |
parent | 1fab518c6a75dac5773654646eb724a59741bc13 (diff) | |
download | rails-708b5c0d3a5cf7ca15107ed02d0eb408401e3a63.tar.gz rails-708b5c0d3a5cf7ca15107ed02d0eb408401e3a63.tar.bz2 rails-708b5c0d3a5cf7ca15107ed02d0eb408401e3a63.zip |
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.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |