1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Yasuo Honda 2012-07-28 03:26:49 +09:00
parent 1fab518c6a
commit 708b5c0d3a

View file

@ -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