Permalink
Browse files

Modify the preference attribute from `:null => false` to `:null => true`

to address ORA-01400 errors with Oracle enhanced adapter.

Issue #4856 had been fixed and tested with
the attribute `:null => false, :default => ""`.
Now `:null => false` attribute is not necessary to test this issue.
  • Loading branch information...
1 parent fee0bc5 commit dab8ca53be6a6133fdc24b88e0bf0911bf9ed527 @yahonda yahonda committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/schema/schema.rb
@@ -40,7 +40,7 @@ def create_table(*args, &block)
t.string :settings, :null => true, :limit => 1024
# MySQL does not allow default values for blobs. Fake it out with a
# big varchar below.
- t.string :preferences, :null => false, :default => '', :limit => 1024
+ 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.references :account

0 comments on commit dab8ca5

Please sign in to comment.