require "../app"

module Jennifer::Migration
  def self.run_migrations
    Runner.migrate
  end

  def self.rollback_migration
    Runner.rollback
  end
end

case ARGV[0]?
when "migrate"
  Jennifer::Migration.run_migrations
when "rollback"
  Jennifer::Migration.rollback_migration
else
  puts "Available commands: migrate, rollback"
end 