rails default user migration code example
Example 1: default value rails migration
t.integer :col_name, :default => 0
Example 2: rails g migration add columns
$ rails generate migration AddDetailsToProducts part_number:string price:decimal
t.integer :col_name, :default => 0
$ rails generate migration AddDetailsToProducts part_number:string price:decimal