diff --git a/db/migrate/20221217105012_create_transactions.rb b/db/migrate/20221217105012_create_transactions.rb index a27f9e13..e1cf9037 100644 --- a/db/migrate/20221217105012_create_transactions.rb +++ b/db/migrate/20221217105012_create_transactions.rb @@ -2,7 +2,7 @@ class CreateTransactions < ActiveRecord::Migration[7.0] def change create_table :transactions do |t| t.references :thaali, null: false, foreign_key: true - t.integer :receipt_number, null: false, index: {unique: true} + t.integer :recipe_no, null: false, index: {unique: true} t.integer :mode, null: false t.integer :amount, null: false t.date :date, null: false