【文件属性】:
文件名称:activerecord-postgres-dump-schemas:在Rails dbstructure.sql文件中定义要转储的PostgreSQL模式
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-02 23:46:00
Ruby
activerecord-postgres-dump-schemas
在调用rake db:structure:dump时,明确定义要在Rails db/structure.sql文件中转储的PostgreSQL模式。
此功能将包含在Rails的5,但这种宝石反向移植此功能的Rails 3个Rails 4幸得为为Rails 5。
安装
将此行添加到您的应用程序的Gemfile中:
gem "activerecord-postgres-dump-schemas"
然后执行:
$ bundle
用法
这会添加一个config.active_record.dump_schemas选项,您可以在config/application.rb文件中定义该选项。 该选项的值可以是以下之一:
:schema_search_path (默认):转储database.yml列出的所有模式schema
【文件预览】:
activerecord-postgres-dump-schemas-master
----bin()
--------console(359B)
--------setup(115B)
----activerecord-postgres-dump-schemas.gemspec(1KB)
----Rakefile(117B)
----Gemfile(119B)
----.rspec(31B)
----spec()
--------activerecord-postgres-dump-schemas_spec.rb(244B)
--------spec_helper.rb(104B)
----.gitignore(87B)
----lib()
--------activerecord-postgres-dump-schemas.rb(106B)
--------activerecord-postgres-dump-schemas()
----README.md(2KB)
----LICENSE.txt(1KB)