An open API service indexing awesome lists of open source software.

https://github.com/errm/slodd

Schema Loading On Dependent Databases
https://github.com/errm/slodd

Last synced: about 1 year ago
JSON representation

Schema Loading On Dependent Databases

Awesome Lists containing this project

README

          

Schema Loading On Dependent Databases
=====================================

[![Build Status](https://travis-ci.org/errm/slodd.svg?branch=master)](https://travis-ci.org/errm/slodd)
[![Gem Version](https://badge.fury.io/rb/slodd.svg)](http://badge.fury.io/rb/slodd)
[![Code Climate](https://codeclimate.com/github/errm/slodd/badges/gpa.svg)](https://codeclimate.com/github/errm/slodd)
[![Test Coverage](https://codeclimate.com/github/errm/slodd/badges/coverage.svg)](https://codeclimate.com/github/errm/slodd)

Slodd is a lightweight tool for loading an activerecord schema.rb into a database, like rake db:schema:load but more awesome.

## Examples:

### Loading schema from github:

`slodd -g errm/awesome_rails_app -t my-secret-oauth-token -d "awesome_app awesome_test"`

or from a specific branch:

`slodd -g errm/awesome_rails_app -t my-secret-oauth-token -r my-brillant-branch -d "awesome_app awesome_test"`

### Loading schema from a file (defaults to db/schema.rb):

`slodd -d awesome_test`

or

`slodd -f db/second_database.schema.rb -d awesome_test`

### Downloading a schema (or any text file) from github

`gurl -g errm/awesome_rails_app -t my-secret-oauth-token -r my-fancy-branch`

## Licence

[MIT](LICENCE)