How do I add a binary type column with limit option to a MySQL database
Here’s what I have for a migration right now:
- def self.up
add_column :table_name, :column_name, :binary, :limit =>
Then I ‘rake db:migrate’:
- – add_column(:table_name, :column_name, :binary,
- -> 0.0165s
When I check the schema:
- t.column “column_name”, :binary
Without a limit option! And even though it appears to migrate, the limit
in the application definitely does not change.
Can anyone tell me what to do differently? Thanks.