Verified Commit 0f2e29a8 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fixing migration to be revertable and migrating on virgin db not resulting in altering the schema

parent fe8bf687
Pipeline #18707 passed with stage
in 44 minutes and 44 seconds
class ChangeEventKindDefault < ActiveRecord::Migration[5.1]
def change
change_column_null(:events, :kind, from: true)
change_column_default(:events, :kind, from: false, to: nil)
change_column_null(:events, :kind, true)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment