diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-01-06 03:21:14 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-01-06 03:21:14 -0200 |
commit | 059820c09afaf18e2d29da61db0e0a3215989b89 (patch) | |
tree | 54f344f1c36ef5d9e91e5a35b14c919ffd7b211e /activerecord/test | |
parent | ced9612b59d1a8fdd38ac1669cf1e6bd43220a24 (diff) | |
parent | 4d4239f980a42d78d3a11b78401c211f0420040d (diff) | |
download | rails-059820c09afaf18e2d29da61db0e0a3215989b89.tar.gz rails-059820c09afaf18e2d29da61db0e0a3215989b89.tar.bz2 rails-059820c09afaf18e2d29da61db0e0a3215989b89.zip |
Merge pull request #21688 from kamipo/add_text_and_blob_shorthand_methods
Add short-hand methods for text and blob types in MySQL
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/schema/mysql2_specific_schema.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/activerecord/test/schema/mysql2_specific_schema.rb b/activerecord/test/schema/mysql2_specific_schema.rb index 9e1fe32c2d..752572a79c 100644 --- a/activerecord/test/schema/mysql2_specific_schema.rb +++ b/activerecord/test/schema/mysql2_specific_schema.rb @@ -2,18 +2,18 @@ ActiveRecord::Schema.define do create_table :binary_fields, force: true do |t| t.binary :var_binary, limit: 255 t.binary :var_binary_large, limit: 4095 - t.blob :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 + t.tinyblob :tiny_blob + t.blob :normal_blob + t.mediumblob :medium_blob + t.longblob :long_blob + t.tinytext :tiny_text + t.text :normal_text + t.mediumtext :medium_text + t.longtext :long_text + + t.index :var_binary end - add_index :binary_fields, :var_binary - create_table :key_tests, force: true, :options => 'ENGINE=MyISAM' do |t| t.string :awesome t.string :pizza |