create coinchange

This commit is contained in:
wyx 2020-07-24 17:49:07 +08:00
parent 33951af37d
commit 98176f839d
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,2 @@
class CoinChange < ApplicationRecord
end

View File

@ -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

View File

@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe CoinChange, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end