aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-13 17:12:14 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-13 17:12:14 +0000
commit5a9063a04b5a81de31566ad641728ca06fe96927 (patch)
tree2c58d1d6af82e5f667c394f3ab968a71a12ce13a /db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb
parent018affc145e0b3c823e3e7dcaaada39858f5c8b3 (diff)
Adds some validation and further work on the form
Diffstat (limited to 'db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb')
-rw-r--r--db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb b/db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb
new file mode 100644
index 0000000..ed18b59
--- /dev/null
+++ b/db/migrate/20241113163104_change_feature_slot_on_pdf_resource.rb
@@ -0,0 +1,5 @@
+class ChangeFeatureSlotOnPdfResource < ActiveRecord::Migration[8.0]
+ def change_table(table_name, **options)
+ change_column table_name, :feature_slot, Integer, null: false
+ end
+end