remove duplicate name

This commit is contained in:
Joerg Reichert 2023-04-02 22:40:57 +02:00
parent 8f6f9eae51
commit 0511635443
4 changed files with 19 additions and 17 deletions

View file

@ -17,6 +17,7 @@ jobs:
# - run: docker-compose run web bin/run-tests # - run: docker-compose run web bin/run-tests
- uses: akhileshns/heroku-deploy@v3.12.13 - uses: akhileshns/heroku-deploy@v3.12.13
with: with:
branch: "master"
heroku_email: ${{secrets.HEROKU_EMAIL}} heroku_email: ${{secrets.HEROKU_EMAIL}}
heroku_api_key: ${{secrets.HEROKU_API_KEY}} heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "stadtratmonitor" heroku_app_name: "stadtratmonitor"

View file

@ -22,6 +22,8 @@ Rails.application.configure do
# Raise an error on page load if there are pending migrations. # Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load config.active_record.migration_error = :page_load
config.active_record.legacy_connection_handling = false
# Debug mode disables concatenation and preprocessing of assets. # Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large # This option may cause significant delays in view rendering with a large
# number of complex assets. # number of complex assets.

View file

@ -1,7 +1,7 @@
class CreatePapers < ActiveRecord::Migration[4.2] class CreatePapers < ActiveRecord::Migration[4.2]
def change def change
create_table :papers do |t| create_table :papers do |t|
t.string :name # t.string :name
t.string :url t.string :url
t.string :reference t.string :reference
t.string :name t.string :name

View file

@ -2,20 +2,19 @@
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
# #
# Note that this schema.rb definition is the authoritative source for your # This file is the source Rails uses to define your schema when running `bin/rails
# database schema. If you need to create the application database on another # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# system, you should be using db:schema:load, not running all the migrations # be faster and is potentially less error prone than running all of your
# from scratch. The latter is a flawed and unsustainable approach (the more migrations # migrations from scratch. Old migrations may fail to apply correctly if those
# you'll amass, the slower it'll run and the greater likelihood for issues). # migrations use external dependencies or application code.
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151010070158) do ActiveRecord::Schema[7.0].define(version: 2015_10_10_070158) do
create_table "importers", force: :cascade do |t| create_table "importers", force: :cascade do |t|
t.string "url" t.string "url"
t.datetime "created_at", null: false t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", null: false t.datetime "updated_at", precision: nil, null: false
end end
create_table "paper_searches", force: :cascade do |t| create_table "paper_searches", force: :cascade do |t|
@ -26,18 +25,18 @@ ActiveRecord::Schema.define(version: 20151010070158) do
end end
create_table "papers", force: :cascade do |t| create_table "papers", force: :cascade do |t|
t.string "name"
t.string "url" t.string "url"
t.string "reference" t.string "reference"
t.string "name"
t.string "body" t.string "body"
t.datetime "published_at" t.datetime "published_at", precision: nil
t.datetime "scraped_at" t.datetime "scraped_at", precision: nil
t.string "paper_type" t.string "paper_type"
t.string "originator" t.string "originator"
t.text "resolution" t.text "resolution"
t.text "content" t.text "content"
t.datetime "created_at" t.datetime "created_at", precision: nil
t.datetime "updated_at" t.datetime "updated_at", precision: nil
t.index ["body"], name: "index_papers_on_body" t.index ["body"], name: "index_papers_on_body"
t.index ["originator"], name: "index_papers_on_originator" t.index ["originator"], name: "index_papers_on_originator"
t.index ["reference", "body"], name: "index_papers_on_reference_and_body", unique: true t.index ["reference", "body"], name: "index_papers_on_reference_and_body", unique: true
@ -46,8 +45,8 @@ ActiveRecord::Schema.define(version: 20151010070158) do
create_table "users", force: :cascade do |t| create_table "users", force: :cascade do |t|
t.string "email" t.string "email"
t.datetime "created_at" t.datetime "created_at", precision: nil
t.datetime "updated_at" t.datetime "updated_at", precision: nil
t.index ["email"], name: "index_users_on_email", unique: true t.index ["email"], name: "index_users_on_email", unique: true
end end