Add Quantities table

This commit is contained in:
2025-01-05 00:44:02 +01:00
parent d86e38a3ec
commit 141d67ad21
3 changed files with 30 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
class CreateQuantities < ActiveRecord::Migration[7.2]
def change
create_table :quantities do |t|
t.references :user, foreign_key: true
t.integer :domain
t.string :name, null: false, limit: 31
t.text :description
t.references :parent, foreign_key: {to_table: :quantities}
t.timestamps null: false
end
end
end