Skip to content

Commit

Permalink
Support multiple decisions (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
timpeat authored Oct 22, 2024
1 parent 22ea322 commit 77ba2e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AllowMoreThanOneDecisionPerApplication < ActiveRecord::Migration[7.1]
def change
remove_index :decisions, :crime_application_id, unique: true
add_index :decisions, :crime_application_id, unique: false
end
end
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_10_02_110620) do
ActiveRecord::Schema[7.1].define(version: 2024_10_22_160814) do
# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "plpgsql"
Expand Down Expand Up @@ -60,7 +60,7 @@
t.string "comment"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["crime_application_id"], name: "index_decisions_on_crime_application_id", unique: true
t.index ["crime_application_id"], name: "index_decisions_on_crime_application_id"
end

create_table "redacted_crime_applications", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
Expand Down

0 comments on commit 77ba2e4

Please sign in to comment.