Navigation Menu

Skip to content

rramsden/scribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scribe

Scribe allows you to setup migrations for your Elixir projects.

Build Status

Usage

Add scribe and postgres as mix dependencies. Note: Scribe only supports postgres at the moment, if you want to use another database adapter please contribute!

defp deps do
[ {:scribe, github: "rramsden/scribe"},
  {:pgsql, github: "semiocast/pgsql"} ]
end

Initialize a mix project with scribe

mix scribe.init #=> CREATE db/migrations
                    CREATE db/scribe.conf
                    CREATE lib/my_module/tasks/db.ex

mix compile # needed to run custom mix tasks

Add your database settings in db/scribe.conf

[
  adapter: "postgres",
  host: "localhost",
  database: "database",
  user: "user",
  password: "password"
]

Run a Mix Task

mix db.migration some_migration_name # create a migration
mix db.migrate # run migrations
mix db.rollback # roll a migration back
mix db.drop # drop database
mix db.create # create database

License

MIT license.

See the LICENSE.

About

A database migration library for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages