https://github.com/kenpusney/postmigrate
A barebone PostgreSQL schema migration tool
https://github.com/kenpusney/postmigrate
database migration postgres ruby
Last synced: 7 months ago
JSON representation
A barebone PostgreSQL schema migration tool
- Host: GitHub
- URL: https://github.com/kenpusney/postmigrate
- Owner: kenpusney
- Created: 2016-05-02T16:06:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-01T10:29:24.000Z (about 9 years ago)
- Last Synced: 2025-06-06T09:45:16.001Z (7 months ago)
- Topics: database, migration, postgres, ruby
- Language: Ruby
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# postmigrate
A barebone PostgreSQL schema migration tool
# Usage
* Create your `init/init.sql` script to initialize the database.
* Create your `config.rb` with DB host / database name / user
```shell
# initialize the database environment
./migrate init
# create a new version of migration
./migrate new
# update to newest version
./migrate up
```
# Note
* Please add `.current` and `config.rb` into your version control ignore list.