ruby-on-rails-4 - Error running rake db:migrate RAILS_ENV=development
问题描述
When I run the following command:
rake db:migrate RAILS_ENV=development
I am having this error:
rake aborted! StandardError: An error has occurred, this and all later migrations canceled:
PG::DuplicateTable: ERROR: relation "job_offers" already exists : CREATE TABLE "job_offers" ("id" serial primary key, "company_id" integer, "job_day_id" integer, "state" character varying(30), "date" date, "hour_begin" time, "hour_end" time, "expires_at" timestamp, "payment_type" character varying(30), "daily_rate" decimal, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
解决方案
推荐阅读
- asp.net - Bootstrap Datetimepicker 不适用于 asp.net
- ansible - Ansible ansible_password 未定义变量
- r - R igraph:无法设置边缘序列的属性
- c++ - 有谁知道为什么我在 macOS 上构建 boost 但没有创建 boost::fiber 库?
- javascript - Stacked bars chart not rendering on mobile
- android - 如何每次使用 gradle 制作方面编织 kotlin 代码
- apache-kafka - Produce 调用配置了 IAsyncSerializer 值序列化器,但使用 Avro 序列化器时需要 ISerializer
- jquery - 用jquery替换html元素不起作用
- wpf - 禁用列表框的 Powershell WPF 样式模板
- r - For 循环在循环中失败 grobs [[i]] 中的错误:下标超出范围