In your application's Gemfile
, add:
gem 'double_entry-reporting'
Download and install the gem with Bundler:
bundle
Generate Rails schema migrations for the required tables:
rails generate double_entry:reporting:install
Update the local database:
rake db:migrate
-
Clone this repo.
git clone git@github.com:envato/double_entry-reporting.git && cd double_entry-reporting
-
Run the included setup script to install the gem dependencies.
./script/setup.sh
-
Install MySQL, PostgreSQL and SQLite. We run tests against all three databases.
-
Create a database in MySQL.
mysql -u root -e 'create database double_entry_reporting_test;'
-
Create a database in PostgreSQL.
psql -c 'create database double_entry_reporting_test;' -U postgres
-
Specify how the tests should connect to the database
cp spec/support/{database.example.yml,database.yml} vim spec/support/database.yml
-
Run the tests
bundle exec rake