From 46b906d2acec4bacf45cd221925e665c703e8139 Mon Sep 17 00:00:00 2001 From: wyx <414722560@qq.com> Date: Fri, 24 Jul 2020 17:40:58 +0800 Subject: [PATCH] create stoppedsponsorship --- app/models/stopped_sponsorship.rb | 2 ++ .../20200724094030_create_stopped_sponsorships.rb | 11 +++++++++++ spec/models/stopped_sponsorship_spec.rb | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 app/models/stopped_sponsorship.rb create mode 100644 db/migrate/20200724094030_create_stopped_sponsorships.rb create mode 100644 spec/models/stopped_sponsorship_spec.rb diff --git a/app/models/stopped_sponsorship.rb b/app/models/stopped_sponsorship.rb new file mode 100644 index 00000000..0290fb77 --- /dev/null +++ b/app/models/stopped_sponsorship.rb @@ -0,0 +1,2 @@ +class StoppedSponsorship < ApplicationRecord +end diff --git a/db/migrate/20200724094030_create_stopped_sponsorships.rb b/db/migrate/20200724094030_create_stopped_sponsorships.rb new file mode 100644 index 00000000..b639dc4b --- /dev/null +++ b/db/migrate/20200724094030_create_stopped_sponsorships.rb @@ -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 diff --git a/spec/models/stopped_sponsorship_spec.rb b/spec/models/stopped_sponsorship_spec.rb new file mode 100644 index 00000000..3e4503dd --- /dev/null +++ b/spec/models/stopped_sponsorship_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe StoppedSponsorship, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end