RailsAdminHstore:在 Rails Admin 中使用 hstore 字段的示例

时间:2021-07-01 18:19:42
【文件属性】:
文件名称:RailsAdminHstore:在 Rails Admin 中使用 hstore 字段的示例
文件大小:41KB
文件格式:ZIP
更新时间:2021-07-01 18:19:42
Ruby Rails Admin 和 hstore 属性 如果您在模型上使用 hstore 字段来存储属性的哈希值,并且希望在 Rails Admin 中查看这些属性,请按照以下步骤操作。 hstore 类型需要 PostgreSQL 或其他支持 hstore 的数据库。 如何添加hstore属性 将store_accessor :customizations, :default_folder, :last_search到 (可选)Hstore 将属性存储为字符串。 如果你想在 hstore 中存储一些布尔属性,你可以使用StoreBoolean模块。 extend StoreBoolean store_accessor_boolean :preferences, :send_emails, :show_welcome, :default => false 如何在 Rails Admin
【文件预览】:
RailsAdminHstore-master
----.gitignore(474B)
----app()
--------mailers()
--------assets()
--------models()
--------helpers()
--------views()
--------controllers()
----config.ru(153B)
----bin()
--------rails(219B)
--------setup(805B)
--------bundle(129B)
--------spring(517B)
--------rake(164B)
----log()
--------.keep(0B)
----db()
--------migrate()
--------seeds.rb(432B)
--------schema.rb(1KB)
----public()
--------robots.txt(202B)
--------422.html(2KB)
--------favicon.ico(0B)
--------500.html(1KB)
--------404.html(2KB)
----README.md(2KB)
----vendor()
--------assets()
----config()
--------boot.rb(132B)
--------secrets.yml(964B)
--------database.yml(670B)
--------routes.rb(143B)
--------environments()
--------environment.rb(150B)
--------application.rb(1KB)
--------locales()
--------initializers()
----lib()
--------assets()
--------store_boolean.rb(1KB)
--------tasks()
----Gemfile(1KB)
----Rakefile(249B)
----test()
--------mailers()
--------integration()
--------models()
--------helpers()
--------test_helper.rb(312B)
--------controllers()
--------fixtures()
----Gemfile.lock(5KB)

网友评论