-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05776f6
commit 694a0e3
Showing
29 changed files
with
226 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class UtbkSchoolInformationsController < ApplicationController | ||
def new | ||
end | ||
|
||
def update | ||
end | ||
|
||
def create | ||
end | ||
|
||
def edit | ||
end | ||
|
||
def show | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class UtbkScoresController < ApplicationController | ||
def new | ||
end | ||
|
||
def update | ||
end | ||
|
||
def create | ||
end | ||
|
||
def edit | ||
end | ||
|
||
def show | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module UtbkSchoolInformationsHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module UtbkScoresHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class UtbkSchoolInformation < ApplicationRecord | ||
belongs_to :user | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class UtbkScore < ApplicationRecord | ||
belongs_to :user | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkSchoolInformations#create</h1> | ||
<p>Find me in app/views/utbk_school_informations/create.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkSchoolInformations#edit</h1> | ||
<p>Find me in app/views/utbk_school_informations/edit.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkSchoolInformations#new</h1> | ||
<p>Find me in app/views/utbk_school_informations/new.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkSchoolInformations#show</h1> | ||
<p>Find me in app/views/utbk_school_informations/show.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkSchoolInformations#update</h1> | ||
<p>Find me in app/views/utbk_school_informations/update.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkScores#create</h1> | ||
<p>Find me in app/views/utbk_scores/create.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkScores#edit</h1> | ||
<p>Find me in app/views/utbk_scores/edit.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkScores#new</h1> | ||
<p>Find me in app/views/utbk_scores/new.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkScores#show</h1> | ||
<p>Find me in app/views/utbk_scores/show.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>UtbkScores#update</h1> | ||
<p>Find me in app/views/utbk_scores/update.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class CreateUtbkScores < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :utbk_scores do |t| | ||
t.string :no_peserta | ||
t.date :tanggal_ujian | ||
t.numeric :nilai_penalaran_umum | ||
t.numeric :nilai_pengetahuan_kuantitatif | ||
t.numeric :nilai_pengetahuan_dan_pemahaman_umum | ||
t.numeric :nilai_kemampuan_memahami_bacaan_dan_menulis | ||
t.numeric :jumlah_pelajaran_semester_6 | ||
t.numeric :jumlah_nilai_semester_6 | ||
t.timestamps | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddUserRefToUtbkScore < ActiveRecord::Migration[7.1] | ||
def change | ||
add_reference :utbk_scores, :user, null: false, foreign_key: true | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
db/migrate/20240125035421_create_utbk_school_informations.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class CreateUtbkSchoolInformations < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :utbk_school_informations do |t| | ||
t.string :asal_sekolah | ||
t.string :akreditas | ||
t.numeric :jumlah_pelajaran_un | ||
t.numeric :jumlah_nilai_un | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20240125035732_add_user_ref_to_utbk_school_information.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddUserRefToUtbkSchoolInformation < ActiveRecord::Migration[7.1] | ||
def change | ||
add_reference :utbk_school_informations, :user, null: false, foreign_key: true | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
test/controllers/utbk_school_informations_controller_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require "test_helper" | ||
|
||
class UtbkSchoolInformationsControllerTest < ActionDispatch::IntegrationTest | ||
test "should get new" do | ||
get utbk_school_informations_new_url | ||
assert_response :success | ||
end | ||
|
||
test "should get update" do | ||
get utbk_school_informations_update_url | ||
assert_response :success | ||
end | ||
|
||
test "should get create" do | ||
get utbk_school_informations_create_url | ||
assert_response :success | ||
end | ||
|
||
test "should get edit" do | ||
get utbk_school_informations_edit_url | ||
assert_response :success | ||
end | ||
|
||
test "should get show" do | ||
get utbk_school_informations_show_url | ||
assert_response :success | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require "test_helper" | ||
|
||
class UtbkScoresControllerTest < ActionDispatch::IntegrationTest | ||
test "should get new" do | ||
get utbk_scores_new_url | ||
assert_response :success | ||
end | ||
|
||
test "should get update" do | ||
get utbk_scores_update_url | ||
assert_response :success | ||
end | ||
|
||
test "should get create" do | ||
get utbk_scores_create_url | ||
assert_response :success | ||
end | ||
|
||
test "should get edit" do | ||
get utbk_scores_edit_url | ||
assert_response :success | ||
end | ||
|
||
test "should get show" do | ||
get utbk_scores_show_url | ||
assert_response :success | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
|
||
one: | ||
asal_sekolah: MyString | ||
akreditas: MyString | ||
jumlah_pelajaran_un: MyString | ||
jumlah_nilai_un: MyString | ||
|
||
two: | ||
asal_sekolah: MyString | ||
akreditas: MyString | ||
jumlah_pelajaran_un: MyString | ||
jumlah_nilai_un: MyString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
|
||
one: | ||
no_peserta: MyString | ||
tanggal_ujian: 2024-01-25 | ||
|
||
two: | ||
no_peserta: MyString | ||
tanggal_ujian: 2024-01-25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require "test_helper" | ||
|
||
class UtbkSchoolInformationTest < ActiveSupport::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require "test_helper" | ||
|
||
class UtbkScoreTest < ActiveSupport::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |