Module: Twenty::Command::MigrationMixin
- Included in:
- Connect, Console, Disconnect, Up
- Defined in:
- lib/twenty/cli/command/mixin/migration_mixin.rb
Instance Method Summary collapse
Instance Method Details
#run_command ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/twenty/cli/command/mixin/migration_mixin.rb', line 4 def run_command(...) if pending_migrations? warn "There are pending migrations.\n" \ "Run \"twenty migrate\" first.\n" exit(1) else super(...) end end |