Answers for "has to give a default value to a model attribute in rails"

0

set default value for rails attribute

....
add_column :status, :string, :default => "P"
....
Posted by: Guest on October-08-2020

Code answers related to "has to give a default value to a model attribute in rails"

Browse Popular Code Answers by Language