database Best Practices: Manage database schema changes with Database Migration (and version control) When you develop software with a SQL database, there are code changes that requires database changes as well. It could be database schema changes (e.g. adding a new column) or data fixes
rubyonrails Prevent duplicated database record creation with find_or_create_by When we developed the gaming App for our client Colors, we encountered a common data consistency problem: How to prevent duplicated database record creation. Of course everyone instantly can think of "use