student_works_scores_appeal model

This commit is contained in:
huang 2016-12-14 16:00:38 +08:00
parent e8ea252e6d
commit 185e8957e6
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,3 @@
class StudentWorksScoresAppeal < ActiveRecord::Base
attr_accessible :appeal_status, :comment, :student_works_score_id, :user_id
end

View File

@ -0,0 +1,12 @@
class CreateStudentWorksScoresAppeals < ActiveRecord::Migration
def change
create_table :student_works_scores_appeals do |t|
t.integer :student_works_score_id
t.integer :user_id
t.text :comment
t.integer :appeal_status
t.timestamps
end
end
end

View File

@ -0,0 +1,9 @@
FactoryGirl.define do
factory :student_works_scores_appeal do
student_works_score_id 1
user_id 1
comment "MyText"
appeal_status 1
end
end

View File

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