shimgo
5/17/2019 - 6:42 AM

ActiveRecordにデフォルト値を設定する

attribute :user_name, :string, default: 'no_name'