Skip to content

Commit

Permalink
remove duplicate name
Browse files Browse the repository at this point in the history
  • Loading branch information
joergreichert committed Apr 2, 2023
1 parent 8f6f9ea commit 0511635
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
# - run: docker-compose run web bin/run-tests
- uses: akhileshns/heroku-deploy@v3.12.13
with:
branch: "master"
heroku_email: ${{secrets.HEROKU_EMAIL}}
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "stadtratmonitor"
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load

config.active_record.legacy_connection_handling = false

# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20150413193656_create_papers.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class CreatePapers < ActiveRecord::Migration[4.2]
def change
create_table :papers do |t|
t.string :name
# t.string :name
t.string :url
t.string :reference
t.string :name
Expand Down
31 changes: 15 additions & 16 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# 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|
t.string "url"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end

create_table "paper_searches", force: :cascade do |t|
Expand All @@ -26,18 +25,18 @@
end

create_table "papers", force: :cascade do |t|
t.string "name"
t.string "url"
t.string "reference"
t.string "name"
t.string "body"
t.datetime "published_at"
t.datetime "scraped_at"
t.datetime "published_at", precision: nil
t.datetime "scraped_at", precision: nil
t.string "paper_type"
t.string "originator"
t.text "resolution"
t.text "content"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.index ["body"], name: "index_papers_on_body"
t.index ["originator"], name: "index_papers_on_originator"
t.index ["reference", "body"], name: "index_papers_on_reference_and_body", unique: true
Expand All @@ -46,8 +45,8 @@

create_table "users", force: :cascade do |t|
t.string "email"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.index ["email"], name: "index_users_on_email", unique: true
end

Expand Down

0 comments on commit 0511635

Please sign in to comment.