jashmenn / activeuuid

Binary uuid keys in Rails
MIT License
340 stars 124 forks source link

fix for rails 5 #82

Closed edwardsharp closed 8 years ago

edwardsharp commented 8 years ago

replaced == with >= when comparing ActiveRecord::VERSION::MAJOR

should resolve: https://github.com/jashmenn/activeuuid/issues/80

ref: https://github.com/jashmenn/activeuuid/issues/46 https://github.com/jashmenn/activeuuid/issues/39

edwardsharp commented 8 years ago

oh, i guess rails 5 has builtin support for uuid primary keys.

Judahmeek commented 8 years ago

rails 5 apparently has builtin support for uuid primary keys with postgres, but not with sqlite3 AFAIK. reference: https://github.com/rails/rails/issues/20518

But then, does anyone actually use sqlite3 in production?

bruzos commented 7 years ago

Rails 5.0.0.1 Sqlite as development storage activeuuid 0.6.1 (at master@4f8e0ef)

Keep showing error Gem Load Error is: undefined method type_cast' for classActiveRecord::ConnectionAdapters::Column'