mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-08 14:11:42 +08:00
create stoppedsponsorship
This commit is contained in:
2
app/models/stopped_sponsorship.rb
Normal file
2
app/models/stopped_sponsorship.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class StoppedSponsorship < ApplicationRecord
|
||||
end
|
||||
11
db/migrate/20200724094030_create_stopped_sponsorships.rb
Normal file
11
db/migrate/20200724094030_create_stopped_sponsorships.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateStoppedSponsorships < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :stopped_sponsorships do |t|
|
||||
t.integer :amount
|
||||
t.integer :sponsor_id
|
||||
t.integer :developer_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
5
spec/models/stopped_sponsorship_spec.rb
Normal file
5
spec/models/stopped_sponsorship_spec.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe StoppedSponsorship, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
Reference in New Issue
Block a user