会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Mr-chen
首页
管理
2018年6月15日
Learn Rails5.2- ActiveRecord: sqlite3的用法, Query查询语法。乐观锁和悲观锁案例,查询语法includes(), 多态关联,destory和delete, Scope, Validats, Migrations
摘要: rails generate model photo title:string album:references 这会产生一个album_id列,当建立belongs_to关联时,需要用到。 references算时一种结构,会产生integer. For integer, string, text
阅读全文
posted @ 2018-06-15 19:51 Mr-chen
阅读(693)
评论(0)
推荐(0)
编辑