Re:Stop using SQLite for Rails dev
by prodigal_erik on Sunday August 28, 2011 @09:36PM
(#2935550)
SQLite should reject DDL that specifies DECIMAL(n, 0) unless that type is implemented correctly. Until now I only expected MySQL to display reckless disregard for users' stated requirements in favor of guessing what they might want.
SQLite doesn't have strict types (see http://www.sqlite.org/datatype3.html). MySQL does. It's not SQLite's fault or ActiveRecord's fault: it's one of the many issues you have to take into account when developing software that runs on two very different database systems.
Edit: ActiveRecord specifically notes this behavior in the documentation:
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAd...