Skip to content

Commit

Permalink
Merge pull request #1253 from jonkerz/remove-unused-uncertain-localit…
Browse files Browse the repository at this point in the history
…y-column

Remove unused column `protonyms.uncertain_locality`
  • Loading branch information
jonkerz committed Feb 21, 2021
2 parents 960033a + 77ddbbd commit 8fede61
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
@@ -1,7 +1,5 @@
# frozen_string_literal: true

# TODO: Remove column.

class AddUncertainLocalityToProtonyms < ActiveRecord::Migration[6.0]
def change
safety_assured do
Expand Down
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class RemoveUncertainLocalityFromProtonyms < ActiveRecord::Migration[6.1]
def change
safety_assured do
remove_column :protonyms, :uncertain_locality, :boolean, default: false, null: false
end
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2021_01_16_180813) do
ActiveRecord::Schema.define(version: 2021_02_20_225054) do

create_table "activities", id: :integer, charset: "utf8", force: :cascade do |t|
t.integer "trackable_id"
Expand Down Expand Up @@ -168,7 +168,6 @@
t.text "secondary_type_information_taxt"
t.text "type_notes_taxt"
t.string "biogeographic_region"
t.boolean "uncertain_locality", default: false, null: false
t.integer "type_name_id"
t.string "forms"
t.text "notes_taxt"
Expand Down

0 comments on commit 8fede61

Please sign in to comment.