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

Add support Rails 6.0 #62

Merged
merged 4 commits into from
Jun 14, 2024
Merged

Add support Rails 6.0 #62

merged 4 commits into from
Jun 14, 2024

Conversation

VladislavSokov
Copy link
Collaborator

No description provided.

@@ -0,0 +1,2 @@
ENV['PRIMARY_MIGRATIONS_PATH'] = Rails.root.join('db', 'migrate').to_s
Copy link
Member

Choose a reason for hiding this comment

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

Env vars usually are defined using shell scripts, or system. Since the runtime got the the Ruby code we should define Ruby vars instead. In other words, Ruby doesn't own env vars, so it should not mutate them or define new ones.

adapter: sqlite3
database: tmp/secondary.sqlite3
migrations_paths:
- <%= ENV['SECONDARY_MIGRATIONS_PATH'] %>
Copy link
Member

Choose a reason for hiding this comment

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

remove the trailing line below

@VladislavSokov VladislavSokov marked this pull request as ready for review June 14, 2024 15:30
@ka8725 ka8725 merged commit 91b4959 into main Jun 14, 2024
8 checks passed
@ka8725 ka8725 deleted the support-rails-6.0 branch June 14, 2024 16:01
@ka8725 ka8725 mentioned this pull request Jun 15, 2024
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