public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
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>
Tarmo Tänav (author)
Tue Aug 26 01:45:53 -0700 2008
jeremy (committer)
Tue Aug 26 01:49:19 -0700 2008
commit  973c0ef26d94b5cf2bd29dce177357d5905be211
tree    83aa4c5b927fdbbf7598dd013149148ec5275043
parent  fa795ccfade59c4bbab91ada3bb34e5fbfac448c
...
1
2
 
3
4
5
...
9
10
11
12
13
 
...
1
 
2
3
4
5
...
9
10
11
 
12
13
0
@@ -1,5 +1,5 @@
0
 ActiveRecord::Schema.define do
0
-  create_table :binary_fields, :force => true do |t|
0
+  create_table :binary_fields, :force => true, :options => 'CHARACTER SET latin1' do |t|
0
     t.binary :tiny_blob,   :limit => 255
0
     t.binary :normal_blob, :limit => 65535
0
     t.binary :medium_blob, :limit => 16777215
0
@@ -9,4 +9,4 @@ ActiveRecord::Schema.define do
0
     t.text   :medium_text, :limit => 16777215
0
     t.text   :long_text,   :limit => 2147483647
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments