forked from fixin.me/fixin.me
Generate admin password on db:seed
Test admin account creation in db:seed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class CreateReadouts < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :readouts do |t|
|
||||
t.references :user, null: false, foreign_key: true
|
||||
t.references :user, null: false, foreign_key: {on_delete: :cascade}
|
||||
t.references :quantity, null: false, foreign_key: true
|
||||
# :category + :value + :unit as a separate table? (NumericValue, TextValue)
|
||||
t.integer :category, null: false, default: 0
|
||||
|
||||
Reference in New Issue
Block a user