• Yorick Peterse's avatar
    Enforce a default snippet access level in the DB · 6d7bf439
    Yorick Peterse authored
    This adds a database migration that ensures that
    project_features.snippets_access_level defaults to a value of 20 (=
    ProjectFeature::ENABLED), instead of NULL. This allows us to simplify
    some of the queries used for obtaining snippets, as we no longer need to
    handle cases where this column is NULL.
    6d7bf439
20181026143227_migrate_snippets_access_level_default_value.rb 1.34 KB