mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
fee0bc5738
commit
dab8ca53be
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ ActiveRecord::Schema.define do
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue