Sha256: 1d958eca49cee6acf11a02aec8391b3f78777dc3b17644d99ad1a84de0c9b391

Contents?: true

Size: 686 Bytes

Versions: 4

Compression:

Stored size: 686 Bytes

Contents

#!/usr/bin/env bash

# edit constants in lib/thredded/db_tools.rb
# git checkout v0.x.0 -b create-0.x-migration-fixture
# bundle

DIR=$(pwd)

cd spec/dummy && DB=sqlite3 rails db:environment:set RAILS_ENV=development
cd $DIR
DB=sqlite3 rake db:drop db:create db:migrate db:miniseed_dump

cd spec/dummy && DB=postgresql rails db:environment:set RAILS_ENV=development
cd $DIR
DB=postgresql rake db:drop db:create db:migrate db:miniseed_dump

cd spec/dummy && DB=mysql2 rails db:environment:set RAILS_ENV=development
cd $DIR
DB=mysql2 rake db:drop db:create db:migrate db:miniseed_dump

git add `pwd`/spec/migration/*.dump

git commit -em "add sample data for 0.8 base for migration spec"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-1.1.0 bin/create_migration_fixture
thredded-1.0.1 bin/create_migration_fixture
thredded-1.0.0 bin/create_migration_fixture
thredded-0.13.8 bin/create_migration_fixture