代码之家  ›  专栏  ›  技术社区  ›  Ben

ActiveRecord::迁移[5.2]阻止RubyMine自动完成

  •  1
  • Ben  · 技术社区  · 6 年前

    我使用RubyMine-CTRL+ALT+G生成了一个名为User的模型

    class CreateUsers < ActiveRecord::Migration[5.2]
      def change
        create_table :users do |t|
          t.timestamps
        end
      end
    end
    

    我尝试使用自动完成,但它不起作用。 我移除 [5.2] 1.有效。

    class CreateUsers < ActiveRecord::Migration
      def change
        create_table :users do |t|
          t.timestamps
        end
      end
    end
    

    我在RubyMine 2018.2上的RVM安装中使用了Rails 5.2和Ruby 2.5.1p57

    我试过让缓存失效。

    如何让autocomplete开始工作?

    0 回复  |  直到 6 年前