translateable icon indicating copy to clipboard operation
translateable copied to clipboard

Migration generator is broken on Rails 5?

Open Sprachprofi opened this issue 5 years ago • 3 comments

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'

Sprachprofi avatar Aug 24 '19 13:08 Sprachprofi

Will check it. Thanks for the report

olegantonyan avatar Aug 26 '19 17:08 olegantonyan

@Sprachprofi fixed (version 0.2.0)

olegantonyan avatar Aug 28 '19 08:08 olegantonyan

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

Sprachprofi avatar Apr 07 '21 10:04 Sprachprofi