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

Rails version hard coded @ 5.0 in Migration template #175

Closed
joshRpowell opened this issue Jan 29, 2021 · 0 comments · Fixed by #180
Closed

Rails version hard coded @ 5.0 in Migration template #175

joshRpowell opened this issue Jan 29, 2021 · 0 comments · Fixed by #180

Comments

@joshRpowell
Copy link

Tell us about your environment

Ruby Version: 2.7.2

Rails Version: 6.0.3.4

PostgreSQL Version: 11.1

Logidze Version: 1.0

What did you do?

bundle exec rails generate logidze:model Rule

What did you expect to happen?

AddLogidzeToRules < ActiveRecord::Migration[6.0]

What actually happened?

AddLogidzeToRules < ActiveRecord::Migration[5.0]

Source of issue

class <%= @migration_class_name %> < ActiveRecord::Migration[5.0]

Potential Fix

class <%= @migration_class_name %> < "ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]"
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 a pull request may close this issue.

1 participant