Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap init schema in safety assured to allow for foreign keys #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

claireannecotter
Copy link

Use safety_assured in init_schema if strongmigrations are in use so that foreign keys can still be applied.

@claireannecotter
Copy link
Author

@jalkoby what do you think about something like this? would you consider adding strong migrations to the gem?


private
def strong_migrations_missing?
gem_dependency = Gem::Dependency.new(StrongMigrations)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a problem. if StrongMigrations is not defined - it will raise the constant error. defined? will be usefull here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants