student_works_scores_appeal model
This commit is contained in:
parent
e8ea252e6d
commit
185e8957e6
|
@ -0,0 +1,3 @@
|
||||||
|
class StudentWorksScoresAppeal < ActiveRecord::Base
|
||||||
|
attr_accessible :appeal_status, :comment, :student_works_score_id, :user_id
|
||||||
|
end
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe StudentWorksScoresAppeal, :type => :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
Loading…
Reference in New Issue