4

Ruby on Rails has ActiveRecord and migrations for database schema and data migrations. Does play framework has support like this (both schema and data migrations)? What if NoSQL database is used in play framework, does it still support database migrations?

ace
  • 11,526
  • 39
  • 113
  • 193
  • For NoSQL, there is no schema so migration is no exactly the same process as SQL. It deals with data migration and not model migration. – mandubian Jun 12 '11 at 22:10

2 Answers2

3

Since Play 1.2 there exists an build-in solution called evolution. Another approach is to use the liquibase-plugin, which is database independent.

niels
  • 7,321
  • 2
  • 38
  • 58
0

For Play & SQL there seem's to be module migrate in addition to evolutions.

Differences:

  • With migrate you can run up scripts separately from application starting
  • Down migrations not implemented yet
Touko
  • 11,359
  • 16
  • 75
  • 105