From 769bf2b90eeab74e3ff8ea12820df8be232f391a Mon Sep 17 00:00:00 2001 From: wyx <414722560@qq.com> Date: Fri, 24 Jul 2020 17:51:14 +0800 Subject: [PATCH] create passedlist --- app/models/passed_waitlist.rb | 2 ++ db/migrate/20200724095057_create_passed_waitlists.rb | 12 ++++++++++++ spec/models/passed_waitlist_spec.rb | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 app/models/passed_waitlist.rb create mode 100644 db/migrate/20200724095057_create_passed_waitlists.rb create mode 100644 spec/models/passed_waitlist_spec.rb diff --git a/app/models/passed_waitlist.rb b/app/models/passed_waitlist.rb new file mode 100644 index 00000000..90cfb57a --- /dev/null +++ b/app/models/passed_waitlist.rb @@ -0,0 +1,2 @@ +class PassedWaitlist < ApplicationRecord +end diff --git a/db/migrate/20200724095057_create_passed_waitlists.rb b/db/migrate/20200724095057_create_passed_waitlists.rb new file mode 100644 index 00000000..6d8b4b81 --- /dev/null +++ b/db/migrate/20200724095057_create_passed_waitlists.rb @@ -0,0 +1,12 @@ +class CreatePassedWaitlists < ActiveRecord::Migration[5.2] + def change + create_table :passed_waitlists do |t| + t.string :applicant_id + t.string :integer + t.string :reviewer_id + t.string :integer + + t.timestamps + end + end +end diff --git a/spec/models/passed_waitlist_spec.rb b/spec/models/passed_waitlist_spec.rb new file mode 100644 index 00000000..5124c945 --- /dev/null +++ b/spec/models/passed_waitlist_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe PassedWaitlist, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end