class CreateComposablePwdlessSecrets < ActiveRecord::Migration[7.0] def change create_table :composable_pwdless_secrets do |t| t.string :data_digest, null: false, index: { unique: true } t.string :code_digest, null: false t.datetime :expires_at, null: false t.integer :remaining_attempts, null: false, unsigned: true t.timestamps end end end