diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-03-02 04:42:10 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-03-02 04:42:10 +0000 |
commit | c1abe4430684512709976f66634903a4dc147d03 (patch) | |
tree | f3b7105fd57645a39d8702d1052151df85e25417 /activerecord/test/schema | |
parent | 4673c47d7beae5bb5a79841d517b5c5d9b22579a (diff) | |
download | rails-c1abe4430684512709976f66634903a4dc147d03.tar.gz rails-c1abe4430684512709976f66634903a4dc147d03.tar.bz2 rails-c1abe4430684512709976f66634903a4dc147d03.zip |
Make the mysql schema dumper roundtrip the limits of text/blob columns. Closes #7424 [will.bryant]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 45da902088..33aa6e2ea4 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -25,6 +25,17 @@ ActiveRecord::Schema.define do t.binary :data end + create_table :binary_fields, :force => true do |t| + t.binary :tiny_blob, :limit => 255 + t.binary :normal_blob, :limit => 65535 + t.binary :medium_blob, :limit => 16777215 + t.binary :long_blob, :limit => 2147483647 + t.text :tiny_text, :limit => 255 + t.text :normal_text, :limit => 65535 + t.text :medium_text, :limit => 16777215 + t.text :long_text, :limit => 2147483647 + end + create_table :booleantests, :force => true do |t| t.integer :value end |