activerecord-mysql-unsigned
activerecord-mysql-unsigned copied to clipboard
Enable to use the "unsigned" option in the integer type for migrating of ActiveRecord
SEE ALSO: https://travis-ci.org/walf443/activerecord-mysql-unsigned/builds/48597097 it may be caused that activerecord changed ChangeColumnDefinition class definition since rails/rails@3c10043bc27.
It'd be nice if the gem automatically made integer columns have validations (via introspection), e.g.: ``` validates column, numericality: { only_integer: true, greater_than_or_equal_to: 0, presence: !column_allows_nil } ```
As far as I can tell, all ActiveRecord `int` columns are set with display width of 11. Example below modified from [Rails Guides](http://guides.rubyonrails.org/active_record_basics.html): ``` sql CREATE TABLE products ( id...
I don't think Ruby 1.8 compatibility should be a major goal, but as long as it's a low hanging fruit ...