📜  rails 迁移更新列默认值 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:48.651000             🧑  作者: Mango

代码示例1
class MigrationName < ActiveRecord::Migration
    def change
        change_column :my_table, :my_column, :data_type, deafult: "value"
    end
end