Skip to content

Commit

Permalink
Using migration technique from http://stackoverflow.com/questions/171…
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Clark committed Mar 24, 2017
1 parent b6fa64a commit 3135ef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ rvm:
bundler_args: --without development staging production
sudo: false
before_script:
- bundle exec rake db:test:prepare
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake test:prepare
- bundle exec rake db:migrate
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

ActiveRecord::Migration.maintain_test_schema!

class ActiveSupport::TestCase

def deny(condition)
Expand Down

0 comments on commit 3135ef7

Please sign in to comment.