https://github.com/progm/neo4j_migrations
A draft implementation for neo4j migrations
https://github.com/progm/neo4j_migrations
Last synced: 8 months ago
JSON representation
A draft implementation for neo4j migrations
- Host: GitHub
- URL: https://github.com/progm/neo4j_migrations
- Owner: ProGM
- License: mit
- Created: 2016-05-05T10:12:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T11:00:24.000Z (about 10 years ago)
- Last Synced: 2025-10-19T07:56:40.855Z (9 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neo4j_migrations
A draft implementation for neo4j migrations
## How to use
Add this to the Gemfile:
```ruby
gem 'neo4j_migrations', github: 'ProGM/neo4j_migrations'
```
Create a new Migration
```bash
rails g neo4j_migrations:migration MyMigrationName
```
It will create a new file in `db/neo4j-migrate/xxxxxxxxx-my-migration-name.rb` like this:
```ruby
class AddHiddenToDesks < Neo4jMigrations::Migration
def run
# Insert here your queries!
end
end
```
To run migrations, use this:
```bash
rake neo4j_migrations:run
```