Sha256: ff859689521679d3e76be984c2e6a080ba714e4ee4d9bf7c3ac45c81617851fa

Contents?: true

Size: 741 Bytes

Versions: 40

Compression:

Stored size: 741 Bytes

Contents

#!/usr/bin/env bash
set -e

# Just checking for a healthy container isn't enough, apparently. If
# we don't wait here, sometimes the database is inaccessible.
for i in {1..10}; do
  psql -h pg -U postgres postgres -c 'select 1' >/dev/null 2>&1 && break
  printf ' .'
  sleep 1
done
echo
out="$(psql -h pg -U postgres postgres -c 'select 1' 2>&1)"
if [[ $? != 0 ]]; then
   echo "Postgres didn't start in time:"
   echo "$out"
   exit 1
fi

psql -h pg -U postgres -c "create database app_development"
psql -h pg -U postgres -c "create database app_test"

set -e

RAILS_ENV=development ./bin/rake db:migrate
RAILS_ENV=test ./bin/rake db:migrate

echo "INSERT INTO users ( login ) VALUES ( 'admin' )  " | psql -h pg -U postgres app_development

Version data entries

40 entries across 30 versions & 1 rubygems

Version Path
appmap-0.42.1 spec/fixtures/rails6_users_app/create_app
appmap-0.42.1 spec/fixtures/rails5_users_app/create_app
appmap-0.42.0 spec/fixtures/rails6_users_app/create_app
appmap-0.42.0 spec/fixtures/rails5_users_app/create_app
appmap-0.41.2 spec/fixtures/rails5_users_app/create_app
appmap-0.41.2 spec/fixtures/rails6_users_app/create_app
appmap-0.41.1 spec/fixtures/rails6_users_app/create_app
appmap-0.41.1 spec/fixtures/rails5_users_app/create_app
appmap-0.41.0 spec/fixtures/rails6_users_app/create_app
appmap-0.41.0 spec/fixtures/rails5_users_app/create_app
appmap-0.40.0 spec/fixtures/rails6_users_app/create_app
appmap-0.40.0 spec/fixtures/rails5_users_app/create_app
appmap-0.39.1 spec/fixtures/rails6_users_app/create_app
appmap-0.39.1 spec/fixtures/rails5_users_app/create_app
appmap-0.39.0 spec/fixtures/rails6_users_app/create_app
appmap-0.39.0 spec/fixtures/rails5_users_app/create_app
appmap-0.38.1 spec/fixtures/rails6_users_app/create_app
appmap-0.38.1 spec/fixtures/rails5_users_app/create_app
appmap-0.37.2 spec/fixtures/rails5_users_app/create_app
appmap-0.37.2 spec/fixtures/rails6_users_app/create_app