create table wallet
This commit is contained in:
parent
46b906d2ac
commit
33951af37d
|
@ -0,0 +1,2 @@
|
||||||
|
class Wallet < ApplicationRecord
|
||||||
|
end
|
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe Wallet, type: :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
Loading…
Reference in New Issue