You can initialize a db attribute to a default value in the following two ways -
- Configure your db to assign a default value to that attribute
- Use Ruby's initialize method to assign it a value during Object creation (using something like ActiveRecord to talk to your db)
Is there a reason to prefer one of the above methods over another?
Performance? Maintenance of your code (in the sense that all business logic resides in your Model)?