This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Originally forked from https://gist.github.com/drnic/9d6e63802f1a7517434c25bb80f2ec09 | |
# Works with Rails 7.0.8 and 7.1.2 | |
# Intended to support a multi-schema, single DB Rails app, with separate files for the public schema (schema.rb) | |
# and the new schema (second_schema.rb) | |
# my starting point was an existing database for the Rails app, | |
# and then adding this new schema, new schema file, and new migrations directory. | |
# INTEGRATION STEPS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from alembic.config import Config | |
from alembic.script import ScriptDirectory | |
from flask_migrate import downgrade, upgrade, stamp | |
from flask_project import create_app | |
from flask_project.config import TestingConfig | |
from flask_project.database import db # db = flask_sqlalchemy.SQLAlchemy() | |
# in conftest.py | |
@pytest.fixture |