activerecord-typedstore:活动记录

时间:2021-05-10 07:51:27
【文件属性】:
文件名称:activerecord-typedstore:活动记录
文件大小:23KB
文件格式:ZIP
更新时间:2021-05-10 07:51:27
Ruby ActiveRecord :: TypedStore 但具有类型化的属性。 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-typedstore' 然后执行: $ bundle 或将其自己安装为: $ gem install activerecord-typedstore 用法 它的工作原理与完全相同,但是您可以声明属性的类型。 属性定义类似于activerecord的迁移: class Shop < ActiveRecord :: Base typed_store :settings do | s | s . boolean :public , default : false , null : false s . string :email s . datetime :publish_at s . i
【文件预览】:
activerecord-typedstore-master
----.gitignore(171B)
----.rspec(26B)
----gemfiles()
--------Gemfile.ar-6.1(111B)
--------Gemfile.ar-5.0(108B)
--------Gemfile.ar-master(122B)
--------Gemfile.ar-6.0(82B)
--------Gemfile.ar-5.2(82B)
----LICENSE.txt(1KB)
----.github()
--------workflows()
----spec()
--------support()
--------spec_helper.rb(544B)
--------active_record()
----README.md(4KB)
----activerecord-typedstore.gemspec(1KB)
----lib()
--------active_record()
--------activerecord-typedstore.rb(67B)
----Gemfile(110B)
----Rakefile(790B)

网友评论