1. 首页
  2. 数据库
  3. 其它
  4. activerecord postgres_enum:将PostgreSQLenum数据类型集成到ActiveRecord的架构和迁移中 源码

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

上传者: 2021-02-08 19:29:15上传 ZIP文件 23.36KB 热度 10次
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 ,
下载地址
用户评论