Ruby-Cogs/referrals/db/piccolo_app.py
2025-05-23 02:30:00 -04:00

11 lines
313 B
Python

import os
from piccolo.conf.apps import AppConfig, table_finder
CURRENT_DIRECTORY = os.path.dirname(os.path.abspath(__file__))
APP_CONFIG = AppConfig(
app_name=os.getenv("APP_NAME"),
table_classes=table_finder(["db.tables"]),
migrations_folder_path=os.path.join(CURRENT_DIRECTORY, "migrations"),
)