Rails migration: converting default column from null to an integer

后端 未结 0 1935
名媛妹妹
名媛妹妹 2021-01-20 00:43

I have an existing column that accepts null but I want to update it to have the default value be set to 10.

  def change
    change_column_null :animals, :bas         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题