Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Ability to Generate Migrations with an Optional Template #30

@hjc

Description

@hjc

Arnold should have a command, such as: arnold generate my_migration_name that generates a base migration file for easy iteration.

My thoughts on this:

  • The name of the file becomes: $(date)_${migration_name}, but is customizable through an argument.
  • The template used is very generic by default, but specifying a custom template to be used with Jinja is also possible (or Mako, whichever templating language is nicer).
  • The custom template has access to some variables such as:
    • current date
    • migration name
    • full migration file name

Right now we have #26 pending, for creating an initial migration for a model, but there's to aid in creating future migrations for models.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions