create table wallet

This commit is contained in:
wyx 2020-07-24 17:45:29 +08:00
parent 46b906d2ac
commit 33951af37d
3 changed files with 17 additions and 0 deletions

2
app/models/wallet.rb Normal file
View File

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

View File

@ -0,0 +1,10 @@
class CreateWallets < ActiveRecord::Migration[5.2]
def change
create_table :wallets do |t|
t.integer :balance
t.integer :user_id
t.timestamps
end
end
end

View File

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