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

Migration generator is broken on Rails 5? #12

Open
Sprachprofi opened this issue Aug 24, 2019 · 3 comments
Open

Migration generator is broken on Rails 5? #12

Sprachprofi opened this issue Aug 24, 2019 · 3 comments

Comments

@Sprachprofi
Copy link
Contributor

When I type rails g translateable:migration petition addressee (with or without 'en' as additional parameter), I get

(erb):16:in `migration_template': undefined method `index_exists?' for #<Transla
teable::MigrationGenerator:0xc10ad18> (NoMethodError)
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/erb.rb:864:in `eval'
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/erb.rb:864:in `result'
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.1.0
/lib/rails/generators/migration.rb:64:in `block in migration_template'
        from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor-0.20.3/li
b/thor/actions/create_file.rb:53:in `render'
@olegantonyan
Copy link
Owner

Will check it. Thanks for the report

@olegantonyan
Copy link
Owner

olegantonyan commented Aug 28, 2019

@Sprachprofi fixed (version 0.2.0)

@Sprachprofi
Copy link
Contributor Author

Thanks. I'm even using the plugin on Rails 6 with Postgresql 13 now, works fine :)

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

No branches or pull requests

2 participants