Browse Source

create stoppedsponsorship

tags/v1
wyx 6 years ago
parent
commit
46b906d2ac
3 changed files with 18 additions and 0 deletions
  1. +2
    -0
      app/models/stopped_sponsorship.rb
  2. +11
    -0
      db/migrate/20200724094030_create_stopped_sponsorships.rb
  3. +5
    -0
      spec/models/stopped_sponsorship_spec.rb

+ 2
- 0
app/models/stopped_sponsorship.rb View File

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

+ 11
- 0
db/migrate/20200724094030_create_stopped_sponsorships.rb 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

+ 5
- 0
spec/models/stopped_sponsorship_spec.rb View File

@@ -0,0 +1,5 @@
require 'rails_helper'

RSpec.describe StoppedSponsorship, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end

Loading…
Cancel
Save