Skip to content

Commit

Permalink
Add service_form_download_count to lotteries table
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Dec 18, 2024
1 parent daf417e commit 44b381f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddServiceFormDownloadCountToLotteries < ActiveRecord::Migration[7.0]
def change
add_column :lotteries, :service_form_download_count, :integer, default: 0
end
end
3 changes: 2 additions & 1 deletion 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.0].define(version: 2024_12_17_161720) do
ActiveRecord::Schema[7.0].define(version: 2024_12_18_183211) do
# These are extensions that must be enabled in order to support this database
enable_extension "fuzzystrmatch"
enable_extension "pg_trgm"
Expand Down Expand Up @@ -342,6 +342,7 @@
t.boolean "concealed"
t.integer "status"
t.string "calculation_class"
t.integer "service_form_download_count", default: 0
t.index ["organization_id"], name: "index_lotteries_on_organization_id"
end

Expand Down
Binary file modified erd.pdf
Binary file not shown.

0 comments on commit 44b381f

Please sign in to comment.