Skip to content

Active Record: PostgreSQL用のマイグレーションでインデックスを作成するときにWITHを指定したい #7

@kou

Description

@kou
add_index(:contents, :contents_name, using: 'pgroonga', with: "tokenizer = 'TokenMecab(\"use_reading\", true)'")

みたいに書いたらこんなSQLを実行して欲しい。

CREATE INDEX pgroonga_contents_index
          ON contents
       USING pgroonga (contents_name)
        WITH (tokenizer = 'TokenMecab("use_reading", true)');

参考: rails/rails#40641

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions