• P
    Add reversible syntax for change_column_default · a4128725
    Prem Sichanugrist 提交于
    Passing `:from` and `:to` to `change_column_default` makes this command
    reversible as user has defined its previous state.
    
    So, instead of having the migration command as:
    
        change_column_default(:posts, :state, "draft")
    
    They can write it as:
    
        change_column_default(:posts, :state, from: nil, to: "draft")
    a4128725
sqlite3_adapter.rb 19.5 KB