我已经创建并运行了我的虚荣迁移,我可以看到生成的表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"]
那么为什么它没有创建vanity_experiments.rb
和类似的文件app/models
呢?
我知道虚荣会使用 Redis 而不是我的 PostgreSQL 来存储数据,但是 Rails 仍然将每个表映射到一个模型,对吗?