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 +4 -4
- data/README.md +1 -0
- data/db/migrate/20021101000000_create_unidom_requirements.rb +2 -2
- data/lib/unidom/requirement/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8fb268008c2c7c50396ffa081b9d5e162efce83
|
|
4
|
+
data.tar.gz: 63f11ab94b90f6f4ba887e60c4a5382454474689
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
14
|
-
polymorphic: { null:
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|