RailsEventStore/cqrs-es-sample-with-res

View on GitHub
rails_application/db/migrate/20220703122711_drop_happy_hours.rb

Summary

Maintainability
A
40 mins
Test Coverage
class DropHappyHours < ActiveRecord::Migration[7.0]
  def change
    drop_table :happy_hours, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
      t.string :name
      t.string :code
      t.integer :discount
      t.integer :start_hour
      t.integer :end_hour
      t.string :product_ids, array: true

      t.timestamps
    end
  end
end