aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarmo Tänav <tarmo@itech.ee>2008-08-26 11:45:53 +0300
committerJeremy Kemper <jeremy@bitsweat.net>2008-08-26 01:49:19 -0700
commit973c0ef26d94b5cf2bd29dce177357d5905be211 (patch)
tree83aa4c5b927fdbbf7598dd013149148ec5275043
parentfa795ccfade59c4bbab91ada3bb34e5fbfac448c (diff)
downloadrails-973c0ef26d94b5cf2bd29dce177357d5905be211.tar.gz
rails-973c0ef26d94b5cf2bd29dce177357d5905be211.tar.bz2
rails-973c0ef26d94b5cf2bd29dce177357d5905be211.zip
Create mysql binary_fields table with latin1 character set as with utf8 all the limits would have to be divided by 3 to get the expected text types
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
-rw-r--r--activerecord/test/schema/mysql_specific_schema.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/schema/mysql_specific_schema.rb b/activerecord/test/schema/mysql_specific_schema.rb
index 5ae062c97c..f44c33ae67 100644
--- a/activerecord/test/schema/mysql_specific_schema.rb
+++ b/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 @@ ActiveRecord::Schema.define do
t.text :medium_text, :limit => 16777215
t.text :long_text, :limit => 2147483647
end
-end \ No newline at end of file
+end