Class: CIHelper::Commands::CheckDBRollback
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- CIHelper::Commands::CheckDBRollback
- Defined in:
- lib/ci_helper/commands/check_db_rollback.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
call!, #execute, #execute_with_env, #initialize, process_stdout
Constructor Details
This class inherits a constructor from CIHelper::Commands::BaseCommand
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ci_helper/commands/check_db_rollback.rb', line 6 def call create_and_migrate_database! execute_with_env("bundle exec rake db:rollback_new_migrations") execute_with_env("bundle exec rake db:migrate") if with_clickhouse? create_and_migrate_clickhouse_database! execute_with_env("bundle exec rake ch:rollback_new_migrations") execute_with_env("bundle exec rake ch:migrate") end 0 end |