activerecord-postgres_enum:将PostgreSQLenum数据类型集成到ActiveRecord的架构和迁移中

时间:2021-02-05 16:44:14
【文件属性】:
文件名称:activerecord-postgres_enum:将PostgreSQLenum数据类型集成到ActiveRecord的架构和迁移中
文件大小:23KB
文件格式:ZIP
更新时间:2021-02-05 16:44:14
ruby rails activerecord postgres postgresql ActiveRecord :: PostgresEnum 将迁移和schema.rb支持添加到PostgreSQL枚举数据类型。 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-postgres_enum' 然后执行: $ bundle 或自己安装为: $ gem install activerecord-postgres_enum 用法 移居 create_enum :mood , %w( happy great been_better ) create_table :person do t . enum :person_mood ,
【文件预览】:
activerecord-postgres_enum-master
----.gitignore(124B)
----.rspec(48B)
----bin()
--------setup(131B)
--------console(391B)
----.rubocop.yml(301B)
----CODE_OF_CONDUCT.md(3KB)
----docker-compose.yml(674B)
----LICENSE.txt(1KB)
----.github()
--------PULL_REQUEST_TEMPLATE.md(500B)
--------ISSUE_TEMPLATE()
--------workflows()
----activerecord-postgres_enum.gemspec(2KB)
----spec()
--------support()
--------spec_helper.rb(632B)
--------active_record()
--------internal()
----README.md(3KB)
----dip.yml(743B)
----lib()
--------activerecord()
--------active_record()
----Appraisals(386B)
----Gemfile(213B)
----Rakefile(59B)

网友评论