Permalink
Browse files

Create mysql binary_fields table with latin1 character set as with ut…

…f8 all the limits would have to be divided by 3 to get the expected text types

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent fa795cc commit 973c0ef26d94b5cf2bd29dce177357d5905be211 @tarmo tarmo committed with jeremy Aug 26, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/schema/mysql_specific_schema.rb
View
4 activerecord/test/schema/mysql_specific_schema.rb
@@ -1,5 +1,5 @@
ActiveRecord::Schema.define do
- create_table :binary_fields, :force => true do |t|
+ create_table :binary_fields, :force => true, :options => 'CHARACTER SET latin1' do |t|
t.binary :tiny_blob, :limit => 255
t.binary :normal_blob, :limit => 65535
t.binary :medium_blob, :limit => 16777215
@@ -9,4 +9,4 @@
t.text :medium_text, :limit => 16777215
t.text :long_text, :limit => 2147483647
end
-end
+end

0 comments on commit 973c0ef

Please sign in to comment.