mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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>
This commit is contained in:
committed by
Jeremy Kemper
parent
fa795ccfad
commit
973c0ef26d
@@ -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
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user