polls プラグインのようにマイグレーションを行う方がよいと思います。プラグイン用のマイグレーションとモデルジェネレーターを作成しました:GitHub - spirobel/discourse at plugin_model_and_migrations これにより、マイグレーションファイルは polls プラグインと同じ場所に配置されます。
spirobel
9
関連トピック
| トピック | 返信 | 表示 | アクティビティ | |
|---|---|---|---|---|
| New columns in directory (/users) | 6 | 2847 | 2019 年 10 月 16 日 | |
| Where can I view the use of PluginStoreRow? | 3 | 908 | 2018 年 4 月 3 日 | |
| Best convention for custom plugin DB data for 2021? | 4 | 662 | 2021 年 3 月 17 日 | |
| User page with custom data from external DB | 5 | 3136 | 2017 年 1 月 26 日 | |
| Connecting to database with a plugin | 3 | 1999 | 2016 年 11 月 2 日 |