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:
parent
1fab518c6a
commit
708b5c0d3a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue