• Kamil Trzciński's avatar
    Add `scripts/decomposition/generate-loose-foreign-key.rb` script · db5710bc
    Kamil Trzciński authored
    This adds a helper script to automate loose foreign key swap.
    Script does:
    
    - create branch
    - creates templated migration
    - runs migrations to commit `db/structure.sql`
    - updates YMLs for LFK
    - updates specs for LFK
    - generates LFK spec in a model
    - commits
    - pushes
    - provides MR template
    db5710bc
generate-loose-foreign-key 13.6 KB