This is a generic guidline that applies mostly to Ruby on Rails and Postgres, but can be usefull for running any database migrations in CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest-client' | |
# we use active_fedora/noid to generate pairtrees from noids | |
require 'active_fedora/noid' | |
filename = ARGV[0] | |
raise "missing argument: filename" unless filename | |
instance = 'dev' | |
$user = 'fedoraAdmin' | |
$password = 'fedoraAdmin' |