we_bridge_rails_engine_orgs 0.1.1 → 0.1.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: 3ed538429408a472c71a28894c57902ecb32edf7
4
- data.tar.gz: f40da9c37dbd11b0bf39a8d5e153cdbcc8edaefb
3
+ metadata.gz: 70806c714175bd3d8efacb924038e988dd920ac0
4
+ data.tar.gz: 34a7fea1ff36c1713cdcbc4452eda33e9ddd6832
5
5
  SHA512:
6
- metadata.gz: 6c0fb690cb3ef788cb9668fb14fcaa8293266f0ee5aa7cdc7e0a1abfaafb535f3a2285f545036f68e911ee3f1f0e1f3b55a45f6cfd53dfead5bac2af4dd2abfa
7
- data.tar.gz: 4d57d9219c54401e170a4823b07585375c31b9c462ff38f48c8fc10eb96afb71eda22641dd11faaf3bf7f47993346ef2cbd26dc18eddd57504a18aaf49f89eb1
6
+ metadata.gz: ef0f08236f7ff62b01ce5ce7e5d4889a23c2ef1af23dbd52b5284d705d81100c7f990a62b1f78805a587689ecd759fdad8c05fd163f0a0827262cd3d172461e8
7
+ data.tar.gz: 3150d0cae69a070ca4d6ba2f9aaa05f09a5667bb362de8223e334d14bcbdeb166c7238bd821c2d0813f41121f242f1d531f67a36fff297a3cd7477818e2ea985
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- we_bridge_rails_engine_orgs (0.1.1)
4
+ we_bridge_rails_engine_orgs (0.1.2)
5
5
  actionview-helpers-auto_tag_helper
6
6
  activerecord-mlang
7
7
  we_bridge-auto_view_helper
@@ -0,0 +1,16 @@
1
+ class DeleteNames < ActiveRecord::Migration
2
+ @@name_columns = ["family_name","given_name", "family_name_pron","given_name_pron"]
3
+ def self.up
4
+ remove_column :org_members, :handle_name
5
+ @@name_columns.each do |col|
6
+ remove_column "org_member_texts", col, :string
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ add_column :org_members, :handle_name, :string
12
+ @@name_columns.each do |col|
13
+ add_column "org_member_texts", col, :string
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module WeBridgeRailsEngineOrgs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150814183339) do
14
+ ActiveRecord::Schema.define(version: 20151009112829) do
15
15
 
16
16
  create_table "lang_texts", force: :cascade do |t|
17
17
  t.integer "parent_id", null: false
@@ -141,16 +141,12 @@ ActiveRecord::Schema.define(version: 20150814183339) do
141
141
  end
142
142
 
143
143
  create_table "org_member_texts", force: :cascade do |t|
144
- t.integer "parent_id", null: false
145
- t.integer "lang_id", null: false
146
- t.string "family_name"
147
- t.string "given_name"
148
- t.string "family_name_pron"
149
- t.string "given_name_pron"
144
+ t.integer "parent_id", null: false
145
+ t.integer "lang_id", null: false
150
146
  t.text "comment"
151
147
  t.string "comment_format"
152
- t.datetime "created_at", null: false
153
- t.datetime "updated_at", null: false
148
+ t.datetime "created_at", null: false
149
+ t.datetime "updated_at", null: false
154
150
  end
155
151
 
156
152
  add_index "org_member_texts", ["lang_id", "parent_id"], name: "index_org_member_texts_on_lang_id_and_parent_id", unique: true
@@ -187,9 +183,12 @@ ActiveRecord::Schema.define(version: 20150814183339) do
187
183
  t.integer "sex", limit: 1
188
184
  t.datetime "expire_at"
189
185
  t.date "retired_on"
190
- t.string "handle_name"
191
186
  t.datetime "created_at", null: false
192
187
  t.datetime "updated_at", null: false
188
+ t.string "family_name"
189
+ t.string "given_name"
190
+ t.string "family_name_pron"
191
+ t.string "given_name_pron"
193
192
  end
194
193
 
195
194
  create_table "org_texts", force: :cascade do |t|