Skip to content

Commit

Permalink
Added position index to logos
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahW91 committed Jul 12, 2021
1 parent 24c7698 commit 0cc77ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.git
.dockerignore
.env
.rbenv-vars

.idea
.bundle
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ spec/examples.txt

# Ignore local env variables
.env
.rbenv-vars
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddDisplayPositionIndexToLogo < ActiveRecord::Migration[5.2]
def change
add_column :logos, :display_pos_index, :integer
end
end
25 changes: 2 additions & 23 deletions db/schema.rb
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>, Sarah Wiechers
# <[email protected]>
#
# 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
# <http://www.gnu.org/licenses/>.
#
# 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.
Expand All @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0cc77ac

Please sign in to comment.