diff --git a/db/migrate/20191018010553_create_sequences.rb b/db/migrate/20191018010553_create_sequences.rb index 25120f7..7f69a71 100644 --- a/db/migrate/20191018010553_create_sequences.rb +++ b/db/migrate/20191018010553_create_sequences.rb @@ -1,4 +1,4 @@ -class CreateSequences < ActiveRecord::Migration +class CreateSequences < ActiveRecord::Migration[4.2] def change create_table :sequences do |t| t.string :gbif_id diff --git a/db/migrate/20200214162752_rename_sequences_to_occurrences.rb b/db/migrate/20200214162752_rename_sequences_to_occurrences.rb index d4abdc7..580a003 100644 --- a/db/migrate/20200214162752_rename_sequences_to_occurrences.rb +++ b/db/migrate/20200214162752_rename_sequences_to_occurrences.rb @@ -1,4 +1,4 @@ -class RenameSequencesToOccurrences < ActiveRecord::Migration +class RenameSequencesToOccurrences < ActiveRecord::Migration[4.2] def change rename_table :sequences, :occurrences end diff --git a/db/migrate/20200214163119_add_columns_to_occurrences.rb b/db/migrate/20200214163119_add_columns_to_occurrences.rb index 1be713a..201461d 100644 --- a/db/migrate/20200214163119_add_columns_to_occurrences.rb +++ b/db/migrate/20200214163119_add_columns_to_occurrences.rb @@ -1,4 +1,4 @@ -class AddColumnsToOccurrences < ActiveRecord::Migration +class AddColumnsToOccurrences < ActiveRecord::Migration[4.2] def change add_column :occurrences, :basis_of_record, :string add_column :occurrences, :geodetic_datum, :string diff --git a/db/migrate/20200214163715_remove_sequences_from_occurrences.rb b/db/migrate/20200214163715_remove_sequences_from_occurrences.rb index 7143483..014d52f 100644 --- a/db/migrate/20200214163715_remove_sequences_from_occurrences.rb +++ b/db/migrate/20200214163715_remove_sequences_from_occurrences.rb @@ -1,4 +1,4 @@ -class RemoveSequencesFromOccurrences < ActiveRecord::Migration +class RemoveSequencesFromOccurrences < ActiveRecord::Migration[4.2] def change remove_column :occurrences, :gene_name, :string remove_column :occurrences, :sequence, :text diff --git a/db/migrate/20200214164035_add_genes_table.rb b/db/migrate/20200214164035_add_genes_table.rb index 1ce4f4b..2e31caf 100644 --- a/db/migrate/20200214164035_add_genes_table.rb +++ b/db/migrate/20200214164035_add_genes_table.rb @@ -1,4 +1,4 @@ -class AddGenesTable < ActiveRecord::Migration +class AddGenesTable < ActiveRecord::Migration[4.2] def change create_table :genes do |t| t.string "accession" diff --git a/db/migrate/20200214210151_add_symbol_to_genes.rb b/db/migrate/20200214210151_add_symbol_to_genes.rb index f97ea91..c514e62 100644 --- a/db/migrate/20200214210151_add_symbol_to_genes.rb +++ b/db/migrate/20200214210151_add_symbol_to_genes.rb @@ -1,4 +1,4 @@ -class AddSymbolToGenes < ActiveRecord::Migration +class AddSymbolToGenes < ActiveRecord::Migration[4.2] def change add_column :genes, :symbol, :string end diff --git a/db/migrate/20200214212822_add_subspecies_to_occurrence.rb b/db/migrate/20200214212822_add_subspecies_to_occurrence.rb index babe9bc..292aaae 100644 --- a/db/migrate/20200214212822_add_subspecies_to_occurrence.rb +++ b/db/migrate/20200214212822_add_subspecies_to_occurrence.rb @@ -1,4 +1,4 @@ -class AddSubspeciesToOccurrence < ActiveRecord::Migration +class AddSubspeciesToOccurrence < ActiveRecord::Migration[4.2] def change add_column :occurrences, :taxon_subspecies, :string end diff --git a/db/migrate/20200217232936_recreated_tables_to_fix_order.rb b/db/migrate/20200217232936_recreated_tables_to_fix_order.rb index 58c3acd..7de446b 100644 --- a/db/migrate/20200217232936_recreated_tables_to_fix_order.rb +++ b/db/migrate/20200217232936_recreated_tables_to_fix_order.rb @@ -1,4 +1,4 @@ -class RecreatedTablesToFixOrder < ActiveRecord::Migration +class RecreatedTablesToFixOrder < ActiveRecord::Migration[4.2] def change create_table "occurrences", force: true do |t| t.string "accession" diff --git a/db/migrate/20200217233426_add_indexes.rb b/db/migrate/20200217233426_add_indexes.rb index 1c93cac..4a5e13b 100644 --- a/db/migrate/20200217233426_add_indexes.rb +++ b/db/migrate/20200217233426_add_indexes.rb @@ -1,4 +1,4 @@ -class AddIndexes < ActiveRecord::Migration +class AddIndexes < ActiveRecord::Migration[4.2] def change change_table(:occurrences) do |t| t.index :lat diff --git a/db/migrate/20200218001221_add_indexes_to_accession.rb b/db/migrate/20200218001221_add_indexes_to_accession.rb index ca63500..c62148d 100644 --- a/db/migrate/20200218001221_add_indexes_to_accession.rb +++ b/db/migrate/20200218001221_add_indexes_to_accession.rb @@ -1,4 +1,4 @@ -class AddIndexesToAccession < ActiveRecord::Migration +class AddIndexesToAccession < ActiveRecord::Migration[4.2] def change add_index :genes, :accession add_index :occurrences, :accession diff --git a/db/migrate/20200602200443_add_taxon_occurrence_species_to_gene.rb b/db/migrate/20200602200443_add_taxon_occurrence_species_to_gene.rb index faf5997..7d13d04 100644 --- a/db/migrate/20200602200443_add_taxon_occurrence_species_to_gene.rb +++ b/db/migrate/20200602200443_add_taxon_occurrence_species_to_gene.rb @@ -1,4 +1,4 @@ -class AddTaxonOccurrenceSpeciesToGene < ActiveRecord::Migration +class AddTaxonOccurrenceSpeciesToGene < ActiveRecord::Migration[4.2] def change add_column :genes, :taxon_occurrence_species, :string add_index :genes, :taxon_occurrence_species diff --git a/db/migrate/20200603011127_add_species_path_to_gene.rb b/db/migrate/20200603011127_add_species_path_to_gene.rb index 6b140e0..6ba0847 100644 --- a/db/migrate/20200603011127_add_species_path_to_gene.rb +++ b/db/migrate/20200603011127_add_species_path_to_gene.rb @@ -1,4 +1,4 @@ -class AddSpeciesPathToGene < ActiveRecord::Migration +class AddSpeciesPathToGene < ActiveRecord::Migration[4.2] def change add_column :genes, :species_path, :string end diff --git a/db/migrate/20200603194212_add_genbank_cols_to_occurrences.rb b/db/migrate/20200603194212_add_genbank_cols_to_occurrences.rb index 70c1bdf..4e354dd 100644 --- a/db/migrate/20200603194212_add_genbank_cols_to_occurrences.rb +++ b/db/migrate/20200603194212_add_genbank_cols_to_occurrences.rb @@ -1,4 +1,4 @@ -class AddGenbankColsToOccurrences < ActiveRecord::Migration +class AddGenbankColsToOccurrences < ActiveRecord::Migration[4.2] def change add_column :occurrences, :different_genbank_species, :string add_column :occurrences, :species_path, :string diff --git a/db/migrate/20200605143151_rename_base_pairs_column.rb b/db/migrate/20200605143151_rename_base_pairs_column.rb index d9ac7ba..b7dc726 100644 --- a/db/migrate/20200605143151_rename_base_pairs_column.rb +++ b/db/migrate/20200605143151_rename_base_pairs_column.rb @@ -1,4 +1,4 @@ -class RenameBasePairsColumn < ActiveRecord::Migration +class RenameBasePairsColumn < ActiveRecord::Migration[4.2] def change rename_column :occurrences, :species_total_base_pairs, :species_total_bytes end diff --git a/db/migrate/20200605151757_add_index_to_species_path.rb b/db/migrate/20200605151757_add_index_to_species_path.rb index 59a2021..a2b272b 100644 --- a/db/migrate/20200605151757_add_index_to_species_path.rb +++ b/db/migrate/20200605151757_add_index_to_species_path.rb @@ -1,4 +1,4 @@ -class AddIndexToSpeciesPath < ActiveRecord::Migration +class AddIndexToSpeciesPath < ActiveRecord::Migration[4.2] def change add_index :occurrences, :species_path end diff --git a/db/migrate/20200607013731_add_aligned_to_occurrences.rb b/db/migrate/20200607013731_add_aligned_to_occurrences.rb index 463ab56..ab68a7b 100644 --- a/db/migrate/20200607013731_add_aligned_to_occurrences.rb +++ b/db/migrate/20200607013731_add_aligned_to_occurrences.rb @@ -1,4 +1,4 @@ -class AddAlignedToOccurrences < ActiveRecord::Migration +class AddAlignedToOccurrences < ActiveRecord::Migration[4.2] def change add_column :occurrences, :species_aligned, :boolean add_index :occurrences, :species_aligned diff --git a/db/migrate/20210107150657_drop_genes_table.rb b/db/migrate/20210107150657_drop_genes_table.rb index 290f7b7..c2070e4 100644 --- a/db/migrate/20210107150657_drop_genes_table.rb +++ b/db/migrate/20210107150657_drop_genes_table.rb @@ -1,4 +1,4 @@ -class DropGenesTable < ActiveRecord::Migration +class DropGenesTable < ActiveRecord::Migration[4.2] def change drop_table :genes end diff --git a/db/migrate/20210107150849_add_species_and_files.rb b/db/migrate/20210107150849_add_species_and_files.rb index 7e764bf..7a8d8be 100644 --- a/db/migrate/20210107150849_add_species_and_files.rb +++ b/db/migrate/20210107150849_add_species_and_files.rb @@ -1,4 +1,4 @@ -class AddSpeciesAndFiles < ActiveRecord::Migration +class AddSpeciesAndFiles < ActiveRecord::Migration[4.2] def change create_table :species do |t| t.string :path diff --git a/db/migrate/20210107164308_remove_old_species_cols_from_occurrences.rb b/db/migrate/20210107164308_remove_old_species_cols_from_occurrences.rb index 81fbd26..5157dc5 100644 --- a/db/migrate/20210107164308_remove_old_species_cols_from_occurrences.rb +++ b/db/migrate/20210107164308_remove_old_species_cols_from_occurrences.rb @@ -1,4 +1,4 @@ -class RemoveOldSpeciesColsFromOccurrences < ActiveRecord::Migration +class RemoveOldSpeciesColsFromOccurrences < ActiveRecord::Migration[4.2] def change remove_column :occurrences, :species_max_seqs_per_gene remove_column :occurrences, :species_total_seqs diff --git a/db/migrate/20210115215723_move_taxon_to_species.rb b/db/migrate/20210115215723_move_taxon_to_species.rb index dc74313..f102884 100644 --- a/db/migrate/20210115215723_move_taxon_to_species.rb +++ b/db/migrate/20210115215723_move_taxon_to_species.rb @@ -1,4 +1,4 @@ -class MoveTaxonToSpecies < ActiveRecord::Migration +class MoveTaxonToSpecies < ActiveRecord::Migration[4.2] def change change_table :occurrences do |t| t.remove :taxon_kingdom diff --git a/db/migrate/20210119155152_add_source_to_occurrence.rb b/db/migrate/20210119155152_add_source_to_occurrence.rb index f0e6f72..24e10a5 100644 --- a/db/migrate/20210119155152_add_source_to_occurrence.rb +++ b/db/migrate/20210119155152_add_source_to_occurrence.rb @@ -1,4 +1,4 @@ -class AddSourceToOccurrence < ActiveRecord::Migration +class AddSourceToOccurrence < ActiveRecord::Migration[4.2] def change add_column :occurrences, :source, :integer, default: 0 add_index :occurrences, :source diff --git a/db/migrate/20210120032032_rename_gbifid_to_sourceid.rb b/db/migrate/20210120032032_rename_gbifid_to_sourceid.rb index 13f9d10..cd6dd91 100644 --- a/db/migrate/20210120032032_rename_gbifid_to_sourceid.rb +++ b/db/migrate/20210120032032_rename_gbifid_to_sourceid.rb @@ -1,4 +1,4 @@ -class RenameGbifidToSourceid < ActiveRecord::Migration +class RenameGbifidToSourceid < ActiveRecord::Migration[4.2] def change rename_column :occurrences, :gbif_id, :source_id end diff --git a/db/migrate/20210120032223_add_fields_to_occurrences.rb b/db/migrate/20210120032223_add_fields_to_occurrences.rb index 65ea8f1..d7719f6 100644 --- a/db/migrate/20210120032223_add_fields_to_occurrences.rb +++ b/db/migrate/20210120032223_add_fields_to_occurrences.rb @@ -1,4 +1,4 @@ -class AddFieldsToOccurrences < ActiveRecord::Migration +class AddFieldsToOccurrences < ActiveRecord::Migration[4.2] def change change_table :occurrences do |t| t.string :field_number diff --git a/db/migrate/20210122011413_change_sourceid_to_string.rb b/db/migrate/20210122011413_change_sourceid_to_string.rb index 944ee4b..fd57ada 100644 --- a/db/migrate/20210122011413_change_sourceid_to_string.rb +++ b/db/migrate/20210122011413_change_sourceid_to_string.rb @@ -1,4 +1,4 @@ -class ChangeSourceidToString < ActiveRecord::Migration +class ChangeSourceidToString < ActiveRecord::Migration[4.2] def change change_column :occurrences, :source_id, :string end diff --git a/db/migrate/20210426211251_remove_geodetic_datum_from_occurrences.rb b/db/migrate/20210426211251_remove_geodetic_datum_from_occurrences.rb index b3b2b6a..ded95c0 100644 --- a/db/migrate/20210426211251_remove_geodetic_datum_from_occurrences.rb +++ b/db/migrate/20210426211251_remove_geodetic_datum_from_occurrences.rb @@ -1,4 +1,4 @@ -class RemoveGeodeticDatumFromOccurrences < ActiveRecord::Migration +class RemoveGeodeticDatumFromOccurrences < ActiveRecord::Migration[4.2] def change remove_column :occurrences, :geodetic_datum end diff --git a/db/migrate/20210429010049_add_genes_to_occurrences.rb b/db/migrate/20210429010049_add_genes_to_occurrences.rb index 5bf0b02..0feb3ad 100644 --- a/db/migrate/20210429010049_add_genes_to_occurrences.rb +++ b/db/migrate/20210429010049_add_genes_to_occurrences.rb @@ -1,4 +1,4 @@ -class AddGenesToOccurrences < ActiveRecord::Migration +class AddGenesToOccurrences < ActiveRecord::Migration[4.2] def change add_column :occurrences, :genes, :text end diff --git a/db/migrate/20210515133101_add_flag_to_occurrences.rb b/db/migrate/20210515133101_add_flag_to_occurrences.rb index 2f4a16d..91b6036 100644 --- a/db/migrate/20210515133101_add_flag_to_occurrences.rb +++ b/db/migrate/20210515133101_add_flag_to_occurrences.rb @@ -1,4 +1,4 @@ -class AddFlagToOccurrences < ActiveRecord::Migration +class AddFlagToOccurrences < ActiveRecord::Migration[4.2] def change add_column :occurrences, :flag, :string end