Generate initial models

This commit is contained in:
Charlotte Van Petegem 2025-04-26 19:40:19 +02:00
commit 3e1e5618ca
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
89 changed files with 2706 additions and 0 deletions

View file

@ -0,0 +1,11 @@
class CreateQuestions < ActiveRecord::Migration[8.0]
def change
create_table :questions do |t|
t.references :section, null: false, foreign_key: true
t.text :text, null: false
t.integer :type, null: false
t.timestamps
end
end
end