next_sgad 0.1.8 → 0.1.9

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: c876544283ec46be71b75d5ab46a0789800ed6ef
4
- data.tar.gz: 5ad2b4c520ff7de8ef8aedfa892b834b78ec0719
3
+ metadata.gz: 696a0ac704e76390a40ec494b842a611768cf906
4
+ data.tar.gz: 7413f66353d05a77aaa4e275f1e4086c4d5da1e1
5
5
  SHA512:
6
- metadata.gz: 3347e2da285fbb3bcf66cce96681b7edba2ab6311a0737c78643bd6c1132ceade4706a14759942365ec1508ffd3bb4ce18fd9feff6bfaff318ee371c009c2225
7
- data.tar.gz: 9ee1e438041618d6f146be9c23dc551814d0ace3ee90036bdefdc7e6d2f2b1a85b3554b226944feea0b133080050819ddece78f60f90d7afa8a01f55623757b3
6
+ metadata.gz: e80fb3583054bc4f15e1b0371f5566e73e7b5626327dfb946c0ed06ca47b386e56ace03251c9cc0cc62625148d559e12ff80500882dcdbd7053d1bb5b3657c81
7
+ data.tar.gz: f857a62afb325631c1c15526f80dde1023f250d39b76e638491e2136ef5718910054314394c720e453bd61d8fafa552bd38c4dace7b161a36c537bfe34606fcf
@@ -4,5 +4,6 @@ module NextSgad
4
4
  validates_presence_of :name
5
5
  validates_uniqueness_of :name
6
6
  before_save :create_number, on: :create
7
+ has_and_belongs_to_many :goals, association_foreign_key: :next_sgad_goal_id, foreign_key: :next_sgad_function_id
7
8
  end
8
9
  end
@@ -3,6 +3,7 @@ module NextSgad
3
3
  belongs_to :assessment
4
4
  has_many :employee_goals, dependent: :destroy
5
5
  has_and_belongs_to_many :positions, association_foreign_key: :next_sgad_position_id, foreign_key: :next_sgad_goal_id
6
+ has_and_belongs_to_many :functions, association_foreign_key: :next_sgad_function_id, foreign_key: :next_sgad_goal_id
6
7
 
7
8
  enum goal_type: {skill: 0, objective: 1}
8
9
  enum status: NextSgad::Assessment.statuses
@@ -0,0 +1,8 @@
1
+ class CreateJoinTableGoalFunction < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_join_table :next_sgad_goals, :next_sgad_functions do |t|
4
+ t.index [:next_sgad_goal_id, :next_sgad_function_id], name: 'idx_nxt_sgd_fctns_gls_n_nxt_sgd_goal_id_and_nt_sgd_function_id'
5
+ # t.index [:next_sgad_function_id, :next_sgad_goal_id]
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module NextSgad
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: next_sgad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Maziano
@@ -231,6 +231,7 @@ files:
231
231
  - db/migrate/20171115160122_add_justification_status_to_next_sgad_attendances.rb
232
232
  - db/migrate/20171115161157_migrate_fill_justification_columns.rb
233
233
  - db/migrate/20171119122339_add_for_everyone_to_next_sgad_goals.rb
234
+ - db/migrate/20171119152032_create_join_table_goal_function.rb
234
235
  - lib/concerns/models/employee.rb
235
236
  - lib/generators/initializer/USAGE
236
237
  - lib/generators/initializer/initializer_generator.rb
@@ -262,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
263
  version: '0'
263
264
  requirements: []
264
265
  rubyforge_project:
265
- rubygems_version: 2.6.10
266
+ rubygems_version: 2.6.14
266
267
  signing_key:
267
268
  specification_version: 4
268
269
  summary: SGAD