I\'m trying to find the best way to set default values for objects in Rails.
The best I can think of is to set the default value in the new method in
new
Based on SFEley's answer, here is an updated/fixed one for newer Rails versions:
class SetDefault < ActiveRecord::Migration def change change_column :table_name, :column_name, :type, default: "Your value" end end