unidom-requirement 0.1 → 0.2

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: 9edd50c279718debc248a26f4178118a801d4516
4
- data.tar.gz: c132c11bb48049926097b5f509cdfc6c28c13d50
3
+ metadata.gz: a8fb268008c2c7c50396ffa081b9d5e162efce83
4
+ data.tar.gz: 63f11ab94b90f6f4ba887e60c4a5382454474689
5
5
  SHA512:
6
- metadata.gz: 8d5c3134bf169ca2baf161d83ee6ce41cbf4b24a773bef4f62d976d5e1ce6eaba9269aa091cbf77a782edc43210366d90e80c24e8b3bb8c9042a439b0ff9f313
7
- data.tar.gz: 0b6deae28f341d2ce5f8d370e983f25e3eb15d30fe8cb89ee19f8cf2a6b35157cb923af6dba5a0f0e0b13a5376a6c441070675107050f10d5fb6c1186b4bc775
6
+ metadata.gz: f3f3aeb7fb33793f61637f873bdf49524c98fecf20800214217fcdd5165424d78019fa041ca99fc3aedf8915f5980b753eb036f2e5894f3bc2d7f4c179c26eca
7
+ data.tar.gz: caf9a99e3e41d098aba2ebb5cfa0b51afa5698c0ff1b9a16f0f238ffaf6d42156921f4fdf528314677d50514a89673ba498fac5f58c31cf4fb719a138b9efd9e
data/README.md CHANGED
@@ -37,4 +37,5 @@ The migration versions start with 200211.
37
37
 
38
38
  ```ruby
39
39
  requirement = Unidom::Requirement::Requirement.create! superior_requirement: nil, requirer: person, facility: room, reason: reason, estimated_budget: 100, quantity: 10, required_on: Date.current
40
+ # The #facility attribute could be nil.
40
41
  ```
@@ -10,8 +10,8 @@ class CreateUnidomRequirements < ActiveRecord::Migration
10
10
  polymorphic: { null: false, default: '', limit: 200 }
11
11
  t.references :required, type: :uuid, null: true,
12
12
  polymorphic: { null: true, default: nil, limit: 200 }
13
- t.references :facility, type: :uuid, null: false,
14
- polymorphic: { null: false, default: '', limit: 200 }
13
+ t.references :facility, type: :uuid, null: true,
14
+ polymorphic: { null: true, default: '', limit: 200 }
15
15
  t.references :reason, type: :uuid, null: true,
16
16
  polymorphic: { null: true, default: nil, limit: 200 }
17
17
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Requirement
3
- VERSION = '0.1'.freeze
3
+ VERSION = '0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-requirement
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common