ManageIQ/activerecord-virtual_attributes

View on GitHub
bin/setup

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -e

bundle install
echo

echo "Setting up the postgres database for specs..."
echo "SELECT 'CREATE DATABASE virtual_attributes' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'virtual_attributes')\gexec" | psql -U postgres

echo "Setting up the mysql database for specs..."
mysql -u root -e 'CREATE SCHEMA IF NOT EXISTS 'virtual_attributes';'