next_sges 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4497d602fc90db4b02d6e057cc5e764af8bc9f0
4
- data.tar.gz: 450ea44248b6c4d1fd9e62f1f9ff35727fc2b54b
3
+ metadata.gz: a2e37420cda8900ab3b7c1ca5d18db6a81c0bdec
4
+ data.tar.gz: dc9a596a4c85de5a0bfe849ff6bf94d1ae3c5d66
5
5
  SHA512:
6
- metadata.gz: b734d03b0fa1812dc96d637b25bfd5c548b21bc319e734cb8d5e9a8c3025cb0fa8b472c778f671e8d294626437a445b0422d9f03994a29ef129b1cf9e58c81bf
7
- data.tar.gz: 6681d43dcc33cb884599bce04524d4e519634c0a30923d806eddf5d7d8b1e1711810aa741985b9b09359768bbf0736457f8807940f0f1040c665f79831b221c5
6
+ metadata.gz: f7de5d249b4b443e601b2f986264a4724a8f4a4828d99a470e2249a2dcaf2faa62aea52f04b35c56ec02b66ea36e642b9243422046a720db8c4704fc618b3611
7
+ data.tar.gz: 4a4368ecf0aa7cf1ae427f8f501e43d6755d7442080287d893caafacb1f365e564a8fef0630e7b97603d53688bf8f7ac194367df1c66708f369c0cf17da4044f
@@ -11,7 +11,14 @@ module NextSges
11
11
  has_many :student_responsibles, through: :responsibles, class_name: StudentResponsible.name
12
12
  has_many :student_responsible_periods, through: :student_responsibles, class_name: StudentResponsiblePeriod.name
13
13
  has_many :bank_accounts, as: :owner
14
-
14
+
15
+ has_many :other_services, dependent: :destroy, class_name: OtherService.name
16
+ has_many :cycles, dependent: :destroy, class_name: Cycle.name
17
+ has_many :class_rooms, dependent: :destroy, class_name: ClassRoom.name
18
+ has_many :student_class_rooms, through: :class_rooms, class_name: StudentClassRoom.name
19
+
20
+
21
+
15
22
  INITIAL_LETTER = "C"
16
23
 
17
24
  def name_and_number
@@ -2,6 +2,8 @@ module NextSges
2
2
  class Student < NextSges::ApplicationRecord
3
3
  #belongs_to :parent, optional: true
4
4
  belongs_to :school
5
+
6
+ has_many :student_class_rooms, dependent: :destroy, class_name: StudentClassRoom.name
5
7
  has_many :collection_notes
6
8
  has_many :student_responsibles, dependent: :destroy, class_name: StudentResponsible.name
7
9
  has_many :responsibles, through: :student_responsibles, class_name: Responsible.name
@@ -1,3 +1,3 @@
1
1
  module NextSges
2
- VERSION = '0.1.7'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: next_sges
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NEXTBSS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails