From 0cc77aca48ab59155af8c6cc3bfe339e7d5891b3 Mon Sep 17 00:00:00 2001 From: Sarah Wiechers Date: Mon, 12 Jul 2021 10:16:25 +0200 Subject: [PATCH] Added position index to logos --- .dockerignore | 1 + .gitignore | 1 + ...0701_add_display_position_index_to_logo.rb | 5 ++++ db/schema.rb | 25 ++----------------- 4 files changed, 9 insertions(+), 23 deletions(-) create mode 100644 db/migrate/20210712080701_add_display_position_index_to_logo.rb diff --git a/.dockerignore b/.dockerignore index a8b5112f..deeda857 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ .git .dockerignore .env +.rbenv-vars .idea .bundle diff --git a/.gitignore b/.gitignore index 5cec9efc..7d142722 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ spec/examples.txt # Ignore local env variables .env +.rbenv-vars diff --git a/db/migrate/20210712080701_add_display_position_index_to_logo.rb b/db/migrate/20210712080701_add_display_position_index_to_logo.rb new file mode 100644 index 00000000..05073cea --- /dev/null +++ b/db/migrate/20210712080701_add_display_position_index_to_logo.rb @@ -0,0 +1,5 @@ +class AddDisplayPositionIndexToLogo < ActiveRecord::Migration[5.2] + def change + add_column :logos, :display_pos_index, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 53d7c237..23fced56 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,25 +1,3 @@ -# -# Barcode Workflow Manager - A web framework to assemble, analyze and manage DNA -# barcode data and metadata. -# Copyright (C) 2020 Kai Müller , Sarah Wiechers -# -# -# This file is part of Barcode Workflow Manager. -# -# Barcode Workflow Manager is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# Barcode Workflow Manager is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with Barcode Workflow Manager. If not, see -# . -# # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. @@ -32,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_11_11_094430) do +ActiveRecord::Schema.define(version: 2021_07_12_080701) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" @@ -419,6 +397,7 @@ t.boolean "main", default: true t.bigint "home_id" t.boolean "display", default: true + t.integer "display_pos_index" t.index ["home_id"], name: "index_logos_on_home_id" end