文件名称:dm-constraints:DataMapper 插件约束关系
文件大小:23KB
文件格式:ZIP
更新时间:2024-06-25 02:13:34
Ruby
DM-约束 向关联添加外键约束的插件。 目前仅支持 PostgreSQL 和 MySQL 所有约束都添加到底层数据库中,但约束是在纯 ruby 中实现的。 约束 - :protect returns false on destroy if there are child records - :destroy deletes children if present - :destroy! deletes children directly without instantiating the resource, bypassing any hooks Does not support 1:1 Relationships as #destroy! is not supported on Resource in dm-master -
【文件预览】:
dm-constraints-master
----.gitignore(253B)
----dm-constraints.gemspec(839B)
----LICENSE(1KB)
----spec()
--------spec.opts(54B)
--------integration()
--------spec_helper.rb(645B)
--------isolated()
--------rcov.opts(81B)
----README.rdoc(2KB)
----lib()
--------data_mapper()
--------dm-constraints.rb(614B)
----Gemfile(2KB)
----Rakefile(91B)
----tasks()
--------yardstick.rake(485B)
--------spec.rake(902B)
--------yard.rake(180B)