mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-08 14:11:42 +08:00
create table wallet
This commit is contained in:
2
app/models/wallet.rb
Normal file
2
app/models/wallet.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class Wallet < ApplicationRecord
|
||||
end
|
||||
10
db/migrate/20200724094458_create_wallets.rb
Normal file
10
db/migrate/20200724094458_create_wallets.rb
Normal 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
|
||||
5
spec/models/wallet_spec.rb
Normal file
5
spec/models/wallet_spec.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Wallet, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
Reference in New Issue
Block a user