Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modity the :json_data_empty attribute from `:null => false` to `:null…

… => true`

to address ORA-01400 errors with Oracle enhanced adapter.

The original commit 3c0bf04 requires :json_data_empty attribute
has empty string OR null, then setting `:default => ""` is enough.
  • Loading branch information...
commit 708b5c0d3a5cf7ca15107ed02d0eb408401e3a63 1 parent 1fab518
@yahonda yahonda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/schema/schema.rb
View
2  activerecord/test/schema/schema.rb
@@ -42,7 +42,7 @@ def create_table(*args, &block)
# 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

0 comments on commit 708b5c0

Please sign in to comment.
Something went wrong with that request. Please try again.