forked from Gitlink/forgeplus
create coinchange
This commit is contained in:
parent
33951af37d
commit
98176f839d
|
@ -0,0 +1,2 @@
|
|||
class CoinChange < ApplicationRecord
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
class CreateCoinChanges < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :coin_changes do |t|
|
||||
t.integer :amount
|
||||
t.string :description
|
||||
t.string :reason
|
||||
t.integer :to_wallet_id
|
||||
t.integer :from_wallet_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe CoinChange, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in New Issue