我已经创建并运行了我的vanity迁移,我可以在schema.rb和rails console中看到结果表
ActiveRecord::Base.connection.tables
=> ["schema_migrations", "pages", "users", "areas", "roles", "assignments", "categories", "heuristics", "references", "footnotes", "products", "orders", "vanity_metrics", "vanity_metric_values", "vanity_experiments", "vanity_conversions", "vanity_participants"] 那么为什么它不在app/models中创建vanity_experiments.rb和类似的文件
我知道vanity将使用Redis而不是我的PostgreSQL来存储数据,但Rails仍然将每个表映射到一个模型,对吧?
发布于 2012-11-06 09:03:08
Vanity支持多个适配器,包括ActiveRecord。我的猜测是,生成器会创建这些迁移,以防您使用ActiveRecord适配器。
有关详细信息,请参阅http://vanity.labnotes.org/configuring.html。
https://stackoverflow.com/questions/13242494
复制相似问题