首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么虚荣心不能在应用/模型中创建vanity_experiments.rb和类似的应用程序

为什么虚荣心不能在应用/模型中创建vanity_experiments.rb和类似的应用程序
EN

Stack Overflow用户
提问于 2012-11-06 08:10:36
回答 1查看 121关注 0票数 0

我已经创建并运行了我的vanity迁移,我可以在schema.rbrails console中看到结果表

代码语言:javascript
复制
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仍然将每个表映射到一个模型,对吧?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-06 09:03:08

Vanity支持多个适配器,包括ActiveRecord。我的猜测是,生成器会创建这些迁移,以防您使用ActiveRecord适配器。

有关详细信息,请参阅http://vanity.labnotes.org/configuring.html

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13242494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档