rails default value migration or model code example Example: default value rails migration t.integer :col_name, :default => 0