Sha256: e8d1b1a32aa633313f48b2b687402d63de3d62978c86c440288c249fe61e3614

Contents?: true

Size: 483 Bytes

Versions: 12

Compression:

Stored size: 483 Bytes

Contents

# Small script to roll back migrations (mainly for use in Travis CI)
# (we do this to make sure 'rake db:rollback' is also tested)

# set correct rails version
rails_major_version = 3
rails_major_version = ENV["RAILS_VERSION"][0] unless ENV["RAILS_VERSION"].nil? 

# switch to dummy-app for rails version and run migrations
Dir.chdir("./spec/dummy-rails-#{rails_major_version}") do
  1.upto(Dir.glob('./db/migrate/*.rb').length) do
    system "bundle exec rake db:rollback"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dbview_cti-0.2.3 migrate_down.rb
dbview_cti-0.2.2 migrate_down.rb
dbview_cti-0.2.1 migrate_down.rb
dbview_cti-0.2.0 migrate_down.rb
dbview_cti-0.1.5 migrate_down.rb
dbview_cti-0.1.4 migrate_down.rb
dbview_cti-0.1.3 migrate_down.rb
dbview_cti-0.1.2 migrate_down.rb
dbview_cti-0.1.1 migrate_down.rb
dbview_cti-0.1.0 migrate_down.rb
dbview_cti-0.0.3 migrate_down.rb
dbview_cti-0.0.2 migrate_down.rb