Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/migrate/20191018010553_create_sequences.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RenameSequencesToOccurrences < ActiveRecord::Migration
class RenameSequencesToOccurrences < ActiveRecord::Migration[4.2]
def change
rename_table :sequences, :occurrences
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200214163119_add_columns_to_occurrences.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200214164035_add_genes_table.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddGenesTable < ActiveRecord::Migration
class AddGenesTable < ActiveRecord::Migration[4.2]
def change
create_table :genes do |t|
t.string "accession"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200214210151_add_symbol_to_genes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSymbolToGenes < ActiveRecord::Migration
class AddSymbolToGenes < ActiveRecord::Migration[4.2]
def change
add_column :genes, :symbol, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200214212822_add_subspecies_to_occurrence.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSubspeciesToOccurrence < ActiveRecord::Migration
class AddSubspeciesToOccurrence < ActiveRecord::Migration[4.2]
def change
add_column :occurrences, :taxon_subspecies, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200217232936_recreated_tables_to_fix_order.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200217233426_add_indexes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddIndexes < ActiveRecord::Migration
class AddIndexes < ActiveRecord::Migration[4.2]
def change
change_table(:occurrences) do |t|
t.index :lat
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200218001221_add_indexes_to_accession.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddIndexesToAccession < ActiveRecord::Migration
class AddIndexesToAccession < ActiveRecord::Migration[4.2]
def change
add_index :genes, :accession
add_index :occurrences, :accession
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200603011127_add_species_path_to_gene.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSpeciesPathToGene < ActiveRecord::Migration
class AddSpeciesPathToGene < ActiveRecord::Migration[4.2]
def change
add_column :genes, :species_path, :string
end
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200605143151_rename_base_pairs_column.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200605151757_add_index_to_species_path.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddIndexToSpeciesPath < ActiveRecord::Migration
class AddIndexToSpeciesPath < ActiveRecord::Migration[4.2]
def change
add_index :occurrences, :species_path
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20200607013731_add_aligned_to_occurrences.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210107150657_drop_genes_table.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DropGenesTable < ActiveRecord::Migration
class DropGenesTable < ActiveRecord::Migration[4.2]
def change
drop_table :genes
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210107150849_add_species_and_files.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSpeciesAndFiles < ActiveRecord::Migration
class AddSpeciesAndFiles < ActiveRecord::Migration[4.2]
def change
create_table :species do |t|
t.string :path
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210115215723_move_taxon_to_species.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210119155152_add_source_to_occurrence.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210120032032_rename_gbifid_to_sourceid.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RenameGbifidToSourceid < ActiveRecord::Migration
class RenameGbifidToSourceid < ActiveRecord::Migration[4.2]
def change
rename_column :occurrences, :gbif_id, :source_id
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210120032223_add_fields_to_occurrences.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210122011413_change_sourceid_to_string.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeSourceidToString < ActiveRecord::Migration
class ChangeSourceidToString < ActiveRecord::Migration[4.2]
def change
change_column :occurrences, :source_id, :string
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveGeodeticDatumFromOccurrences < ActiveRecord::Migration
class RemoveGeodeticDatumFromOccurrences < ActiveRecord::Migration[4.2]
def change
remove_column :occurrences, :geodetic_datum
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210429010049_add_genes_to_occurrences.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddGenesToOccurrences < ActiveRecord::Migration
class AddGenesToOccurrences < ActiveRecord::Migration[4.2]
def change
add_column :occurrences, :genes, :text
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210515133101_add_flag_to_occurrences.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddFlagToOccurrences < ActiveRecord::Migration
class AddFlagToOccurrences < ActiveRecord::Migration[4.2]
def change
add_column :occurrences, :flag, :string
end
Expand Down