A migration tool for RethinkDB databases. Version 1.3.1 is the latest stable release (last updated in 2018). It supports both the rethinkdb and rethinkdbdash drivers. Key differentiators: simple CLI tool for creating, running up and down migrations, and configuration via database.json file. Low maintenance project with few updates.
npm install rethink-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows complete setup: create config, install driver, create migration, define up/down functions, and run migration.
Update migration files: change function(connection) to function(r, connection).
Run: npm install --save rethinkdb (or rethinkdbdash).
Create database.json or use environment variables/arguments.
Ensure migration functions use r for all rethinkdb operations.
Run: npm install --save rethinkdb
Change exports.up = function(connection) to exports.up = function(r, connection)
Update migration functions to accept r as first argument.
Create 'database.json' in the project root with appropriate settings.