This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
create table wallet
tags/v1
wyx
6 years ago
parent
46b906d2ac
commit
33951af37d
3 changed files
with
17 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/models/wallet.rb
+10
-0
db/migrate/20200724094458_create_wallets.rb
+5
-0
spec/models/wallet_spec.rb
+ 2
- 0
app/models/wallet.rb
View File
@@ -0,0 +1,2 @@
class Wallet < ApplicationRecord
end
+ 10
- 0
db/migrate/20200724094458_create_wallets.rb
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
+ 5
- 0
spec/models/wallet_spec.rb
View File
@@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe Wallet, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
Write
Preview
Loading…
Cancel
Save