active_storage-postgresql:主动存储的PostgreSQL适配器

时间:2021-05-11 06:30:49
【文件属性】:
文件名称:active_storage-postgresql:主动存储的PostgreSQL适配器
文件大小:54KB
文件格式:ZIP
更新时间:2021-05-11 06:30:49
activestorage Ruby ActiveStorage :: PostgreSQL ActiveStorage Service存储文件PostgeSQL。 文件以大型对象的形式存储在PostgreSQL中,以提供流式访问。 有关大型对象的更多信息,请参见。 这样就可以在带有临时文件系统(例如Heroku)的托管平台上使用ActiveStorage,而无需依赖第三方存储服务。 PostgerSQL中对大对象的存储有,因此仅建议用于原型和非常小的站点。 安装 将此行添加到您的应用程序的Gemfile中: gem 'active_storage-postgresql' 然后执行: $ bundle 在config / storage.yml中将PostgreSQL设置为服务 local : service : PostgreSQL 复制迁移: rails active_storage:install
【文件预览】:
active_storage-postgresql-master
----db()
--------migrate()
----MIT-LICENSE(1KB)
----lib()
--------active_storage()
--------tasks()
----Gemfile(643B)
----Rakefile(562B)
----.travis.yml(106B)
----config()
--------routes.rb(333B)
----test()
--------test_helper.rb(2KB)
--------active_storage()
--------controllers()
--------dummy()
----README.md(2KB)
----CODE_OF_CONDUCT.md(3KB)
----active_storage-postgresql.gemspec(826B)
----.gitignore(201B)
----app()
--------controllers()
----bin()
--------test(116B)

网友评论