Skip to content

项目初始化时生成演示数据报错 #821

@icyleaf

Description

@icyleaf

部署方式 | How to Deploy

源码部署 | Source

部署版本 | Version

nightly (Default)

反代服务 | Reverse Proxy

none

已阅读文档 | Read the document

  • 已阅读 | Yes

描述 | Description

代码层面初始化会依次执行 db:create, db:migratedb:seed 分别用于生成数据库,创建历史表结构和生成默认管理员账号和演示数据,这个分批的步骤被封装在 zealot:upgrade 里面,上面命令分开之前没问题,只要一起执行最后一个就会报错原因未知,目前只能考虑使用 db:setup 利用

问题日志 | Relevant log output

第一次部署项目时会有报错但不影响项目正常使用:

CREATED ADMIN USER: admin@zealot.com
rails aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'device_type' for Release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions