没有合适的资源?快使用搜索试试~ 我知道了~
activerecord-mti:ActiveRecord MTI
共11个文件
rb:6个
gemfile:1个
gitignore:1个
需积分: 5 0 下载量 37 浏览量
2021-04-29
08:23:18
上传
评论
收藏 7KB ZIP 举报
温馨提示
ActiveRecord MTI(多个表继承) 这个gem允许您创建由两个表分配属性的模型。 安装 添加到您的Gemfile: gem 'activerecord-mti' 用法 考虑以下数据库模式: create_table :subjects do | t | t . string :name end create_table :roles do | t | t . integer :subject_id # MTI fields t . integer :role_id t . integer :role_type end create_table :employees do | t | t . string :appointment end create_table :clients do | t | t . string :address en
资源推荐
资源详情
资源评论
收起资源包目录
activerecord-mti-master.zip (11个子文件)
activerecord-mti-master
Gemfile 136B
Gemfile.lock 2KB
spec
delegate_missing_to_spec.rb 542B
spec_helper.rb 188B
mti_spec.rb 3KB
activerecord-mti.gemspec 626B
.gitignore 25B
lib
delegate_missing_to.rb 1KB
activerecord-mti.rb 148B
mti.rb 4KB
README.md 1KB
共 11 条
- 1
资源评论
MachineryLy
- 粉丝: 29
- 资源: 4611
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功