jp_municipality 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,15 @@
1
1
  class CreateMunicipalities < ActiveRecord::Migration[5.2]
2
2
  def up
3
- create_table :municipalities, id: :string, primary_key: :code do |t|
3
+ create_table :municipalities, id: :string, primary_key: :code, limit: 6 do |t|
4
4
  t.string :prefecture_code, null: false, limit: 2
5
+ t.string :district_name
5
6
  t.string :name
7
+ t.string :district_kana
6
8
  t.string :kana
9
+ t.string :district_name_e
10
+ t.string :name_e
7
11
  end
8
12
 
9
- change_column :municipalities, :code, :string, limit: 6
10
13
  add_index :municipalities, :prefecture_code
11
14
  end
12
15
 
@@ -1,3 +1,3 @@
1
1
  module JpMunicipality
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jp_municipality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hayato IZUMI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-02 00:00:00.000000000 Z
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.7.6
137
+ rubygems_version: 2.7.7
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: JIS X 0402 (Identification code for cities, towns and villages) for Rails.