Skip to content

Commit eae660f

Browse files
committed
Fix pending curations
1 parent 32885b0 commit eae660f

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ChangeDefaultToCurationStatus < ActiveRecord::Migration[6.1]
2+
def change
3+
change_column_default :curations, :status_int, 0
4+
end
5+
end

db/schema.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 2025_10_20_054238) do
13+
ActiveRecord::Schema.define(version: 2025_11_11_135930) do
1414

1515
create_table "action_text_rich_texts", force: :cascade do |t|
1616
t.string "name", null: false
@@ -83,6 +83,18 @@
8383
t.index ["user_id"], name: "index_contacts_on_user_id"
8484
end
8585

86+
create_table "curations", force: :cascade do |t|
87+
t.integer "name_id", null: false
88+
t.integer "user_id", null: false
89+
t.integer "kind_int", null: false
90+
t.integer "status_int", default: 0
91+
t.text "notes"
92+
t.datetime "created_at", precision: 6, null: false
93+
t.datetime "updated_at", precision: 6, null: false
94+
t.index ["name_id"], name: "index_curations_on_name_id"
95+
t.index ["user_id"], name: "index_curations_on_user_id"
96+
end
97+
8698
create_table "generic_type_materials", force: :cascade do |t|
8799
t.string "text", null: false
88100
t.datetime "created_at", precision: 6, null: false
@@ -517,6 +529,8 @@
517529
add_foreign_key "contacts", "authors"
518530
add_foreign_key "contacts", "publications"
519531
add_foreign_key "contacts", "users"
532+
add_foreign_key "curations", "names"
533+
add_foreign_key "curations", "users"
520534
add_foreign_key "genome_sequencing_experiments", "genomes"
521535
add_foreign_key "genome_sequencing_experiments", "sequencing_experiments"
522536
add_foreign_key "genomes", "strains"

0 commit comments

Comments
 (0)