mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
create waitlist
This commit is contained in:
2
app/models/waitlist.rb
Normal file
2
app/models/waitlist.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class Waitlist < ApplicationRecord
|
||||
end
|
||||
10
db/migrate/20200724095001_create_waitlists.rb
Normal file
10
db/migrate/20200724095001_create_waitlists.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateWaitlists < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :waitlists do |t|
|
||||
t.integer :applicant_id
|
||||
t.integer :reviewer_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
5
spec/models/waitlist_spec.rb
Normal file
5
spec/models/waitlist_spec.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Waitlist, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
Reference in New Issue
Block a user