Merge branch 'cxt_course' of https://git.trustie.net/jacknudt/trustieforge into cxt_course

This commit is contained in:
cxt 2016-12-15 10:20:26 +08:00
commit ea6078ee5f
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