create stoppedsponsorship

This commit is contained in:
wyx 2020-07-24 17:40:58 +08:00
parent 0a460d1d37
commit 46b906d2ac
3 changed files with 18 additions and 0 deletions

View File

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

View 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

View File

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