aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-14 11:12:36 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-14 11:12:36 +0000
commit1062c6328f60bf9cacba20c07f5cd33e55c153ee (patch)
treeb780312b4fd1427707cbaecdc45711ea827b9fb8 /db
parente636e93c866b000ae4674605ea0543930c7e2e99 (diff)
Adds credits to resource and required asterisks on form
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20241114105702_add_credit_field_to_pdf_resources.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20241114105702_add_credit_field_to_pdf_resources.rb b/db/migrate/20241114105702_add_credit_field_to_pdf_resources.rb
new file mode 100644
index 0000000..7f10ea3
--- /dev/null
+++ b/db/migrate/20241114105702_add_credit_field_to_pdf_resources.rb
@@ -0,0 +1,5 @@
+class AddCreditFieldToPdfResources < ActiveRecord::Migration[8.0]
+ def change
+ add_column :pdfresources, :credits, :integer
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 0e6e899..61a7f3a 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[8.0].define(version: 2024_11_13_163104) do
+ActiveRecord::Schema[8.0].define(version: 2024_11_14_105702) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -50,6 +50,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_13_163104) do
t.text "card_description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.integer "credits"
end
create_table "sessions", force: :cascade do |t|