Skip to content

Commit

Permalink
Modify the preference attribute from :null => false to :null => true
Browse files Browse the repository at this point in the history
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
yahonda committed Jul 27, 2012
1 parent fee0bc5 commit dab8ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/schema/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dab8ca5

Please sign in to comment.