Basic donation records
Adds donation model/table and basic manual management in the admin panel, as well as basic listing of users' own donations.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Donation < ApplicationRecord
|
||||
# Relations
|
||||
belongs_to :user
|
||||
|
||||
# Validations
|
||||
validates_presence_of :amount_sats
|
||||
|
||||
# Hooks
|
||||
# TODO before_create :store_fiat_value
|
||||
end
|
||||
Reference in New Issue
Block a user