Create custom db table and fields from plugin

我觉得像 polls 插件那样进行迁移会更好。我为插件创建了一个迁移和模型生成器:GitHub - spirobel/discourse at plugin_model_and_migrations 它将迁移文件放在了与 polls 插件相同的位置。