Skip to content

Commit da4ed3f

Browse files
committed
Remove engagements
We are not using this anymore!
1 parent f9409c1 commit da4ed3f

File tree

5 files changed

+17
-39
lines changed

5 files changed

+17
-39
lines changed

app/controllers/cards/engagements_controller.rb

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/models/card/engagement.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class DropCardEngagements < ActiveRecord::Migration[8.2]
2+
def up
3+
drop_table :card_engagements
4+
end
5+
6+
def down
7+
create_table :card_engagements, id: :uuid do |t|
8+
t.references :account, type: :uuid, null: false
9+
t.references :card, type: :uuid, null: false, index: true
10+
t.string :status, null: false
11+
t.timestamps
12+
end
13+
14+
add_index :card_engagements, [ :account_id, :status ]
15+
end
16+
end

db/schema.rb

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/card/engagements.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)