Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit dab8ca53be6a6133fdc24b88e0bf0911bf9ed527 1 parent fee0bc5
@yahonda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/schema/schema.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.