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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e117c6f42821127c068f7f36c047ba0fc061756377ab1582851b1c05833b1e31
4
- data.tar.gz: dd2a3c5fae949385c47cdd01ae2acafb88894a887dae1fdbf4ed1682d9801646
3
+ metadata.gz: 9b3feecb31efaac6713c9f80f1991f2dca7d15b83f230578ddb54c516e91b003
4
+ data.tar.gz: 9d4f3238c5e5a9cb5078a69667b240cad361814168895173e83b8d21fd5cfa66
5
5
  SHA512:
6
- metadata.gz: 4f62c2ec35b893ddcee2092137575ea62094b4f6f1427744c0c764734e3f1ad879ae11f3f37b957e81d96e4140cadbe92e1f7dcd866d3fd711e66594d1b13c80
7
- data.tar.gz: 48b5951dbd1a1ce3676e1ff2885f864f06722ce2e7c6255415edaccdd5b0cc72a050b58fd89ffa0fe0dd71d7c2bfa1462296d98fac7f3657fc9e001b197a5419
6
+ metadata.gz: 045bf3bf96bbaaa689f5c5e5e22d21e68d88b7e764a0b61ea39187ffa9229e770c837425bbe279b3c0703bbcb7cf000eff47ab9421d47b8c8240aea2f8f43822
7
+ data.tar.gz: a2a5c57ed9714e258a531c83d6a6ef3621e4f0af5be2e807968740c6993b6424c229ef997fc1e022be37459b3af8a82ee470ce3b89f56e3030e6f92f4ce6b439
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateBrRailtiesFederalUnits < ActiveRecord::Migration
4
+ def change
5
+ create_table :br_railties_federal_units do |t|
6
+ t.string :acronym
7
+ t.string :name
8
+
9
+ t.timestamps null: false
10
+ end
11
+ end
12
+ end
@@ -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
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddIbgeCodeToBrRailtiesFederalUnits < ActiveRecord::Migration
4
+ def change
5
+ add_column :br_railties_federal_units, :ibge_code, :integer
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddIbgeCodeToBrRailtiesMunicipalities < ActiveRecord::Migration
4
+ def change
5
+ add_column :br_railties_municipalities, :ibge_code, :integer
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrRailties
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
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.0
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-20 00:00:00.000000000 Z
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