Skip to content

Commit 708b5c0

Browse files
committed
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.
1 parent 1fab518 commit 708b5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/schema/schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def create_table(*args, &block)
4242
# big varchar below.
4343
t.string :preferences, :null => true, :default => '', :limit => 1024
4444
t.string :json_data, :null => true, :limit => 1024
45-
t.string :json_data_empty, :null => false, :default => "", :limit => 1024
45+
t.string :json_data_empty, :null => true, :default => "", :limit => 1024
4646
t.references :account
4747
end
4848

0 commit comments

Comments
 (0)