br_railties 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20190218210506_create_br_railties_federal_units.rb +12 -0
- data/db/migrate/20190221200607_create_br_railties_municipalities.rb +15 -0
- data/db/migrate/20190226015936_add_ibge_code_to_br_railties_federal_units.rb +7 -0
- data/db/migrate/20190227152340_add_ibge_code_to_br_railties_municipalities.rb +7 -0
- data/lib/br_railties/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3feecb31efaac6713c9f80f1991f2dca7d15b83f230578ddb54c516e91b003
|
4
|
+
data.tar.gz: 9d4f3238c5e5a9cb5078a69667b240cad361814168895173e83b8d21fd5cfa66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 045bf3bf96bbaaa689f5c5e5e22d21e68d88b7e764a0b61ea39187ffa9229e770c837425bbe279b3c0703bbcb7cf000eff47ab9421d47b8c8240aea2f8f43822
|
7
|
+
data.tar.gz: a2a5c57ed9714e258a531c83d6a6ef3621e4f0af5be2e807968740c6993b6424c229ef997fc1e022be37459b3af8a82ee470ce3b89f56e3030e6f92f4ce6b439
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateBrRailtiesMunicipalities < ActiveRecord::Migration
|
4
|
+
def change
|
5
|
+
create_table :br_railties_municipalities do |t|
|
6
|
+
t.string :name
|
7
|
+
t.references :federal_unit, index: true
|
8
|
+
|
9
|
+
t.timestamps null: false
|
10
|
+
end
|
11
|
+
|
12
|
+
add_foreign_key :br_railties_municipalities, :br_railties_federal_units,
|
13
|
+
column: :federal_unit_id
|
14
|
+
end
|
15
|
+
end
|
data/lib/br_railties/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: br_railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_scaffold
|
@@ -74,6 +74,10 @@ files:
|
|
74
74
|
- app/models/br_railties/federal_unit.rb
|
75
75
|
- app/models/br_railties/municipality.rb
|
76
76
|
- config/routes.rb
|
77
|
+
- db/migrate/20190218210506_create_br_railties_federal_units.rb
|
78
|
+
- db/migrate/20190221200607_create_br_railties_municipalities.rb
|
79
|
+
- db/migrate/20190226015936_add_ibge_code_to_br_railties_federal_units.rb
|
80
|
+
- db/migrate/20190227152340_add_ibge_code_to_br_railties_municipalities.rb
|
77
81
|
- lib/br_railties.rb
|
78
82
|
- lib/br_railties/engine.rb
|
79
83
|
- lib/br_railties/ibge/import/federal_units.rb
|