Question

I'm trying to learn martini, coming from Rails. What's being used for database migrations in the martini world?

Was it helpful?

Solution

There is no such thing in martini. It is just a helper for writing web services. If you want database migrations, or a database at all, use third-party packages.

An example tool stack would be:

  • goose for creating migrations
  • gorp for a database object layer

This or a completely different setup, e.g. using Go's standard database package, can be used with martini.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top