add specs

This commit is contained in:
viehlieb 2025-05-22 12:27:25 +02:00
parent e902aa0d5a
commit 45db0575b1
46 changed files with 714 additions and 238 deletions

View file

@ -0,0 +1,5 @@
class AddEmailSentToOrdergroupInvoice < ActiveRecord::Migration[7.0]
def change
add_column :ordergroup_invoices, :email_sent_at, :datetime
end
end

View file

@ -162,6 +162,7 @@ Rails.application.routes.draw do
end
collection do
get :download_within_date
get :send_all
patch :select_all_sepa_sequence_type
patch :toggle_all_sepa_downloaded
patch :toggle_all_paid

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2025_05_16_104953) do
ActiveRecord::Schema[7.0].define(version: 2025_05_21_134157) do
create_table "action_text_rich_texts", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "name", null: false
t.text "body", size: :long
@ -407,6 +407,7 @@ ActiveRecord::Schema[7.0].define(version: 2025_05_16_104953) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "multi_group_order_id"
t.datetime "email_sent_at"
t.index ["multi_group_order_id"], name: "index_ordergroup_invoices_on_multi_group_order_id"
end

View file

@ -1,4 +1,4 @@
# default seed is minimal
require Rails.root.join('db/seeds/minimal.seeds.rb')
require Rails.root.join('db/seeds/demo.seeds.rb')
# to generate new seeds, use the seed_dumper gem