aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-07-27 10:28:06 +0900
committerYasuo Honda <yasuo.honda@gmail.com>2012-07-27 10:31:59 +0900
commitdab8ca53be6a6133fdc24b88e0bf0911bf9ed527 (patch)
treef42facf624d07bb95a55a6572e80a88db8cb716d /activerecord/test/schema/schema.rb
parentfee0bc57385b564b2789d199969ac26409603188 (diff)
downloadrails-dab8ca53be6a6133fdc24b88e0bf0911bf9ed527.tar.gz
rails-dab8ca53be6a6133fdc24b88e0bf0911bf9ed527.tar.bz2
rails-dab8ca53be6a6133fdc24b88e0bf0911bf9ed527.zip
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.
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 8165d09df7..f48bab721f 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -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