we_bridge_rails_engine_langs 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 51f852e2a11e2dad023b20a7274c251173500e97
4
- data.tar.gz: 8b9ba47220bfe674f6fde2660bce863dbd5b624b
3
+ metadata.gz: f83c8e6c6d4f165d54033f3e2a1ca7f4bc15ba1d
4
+ data.tar.gz: 4f974a82d29c911d15b99d45a9598c41a9115b11
5
5
  SHA512:
6
- metadata.gz: 77a71409658f0db473eaaa6f1aaba7a105c346533a2f781f63f6334e92dfeaac5a4d87bc8309784275f3c518b322ce5472b9bd403788f2dcb299c81f8305e2ca
7
- data.tar.gz: c547a1a644b1bf9ce99f9425d5a359ebad8f5024cd9a84a5e8511c55d69dee35f8e85e99bf7264c72d354dfc1497bdfddb179b442cd426e346ce613bd85b87ae
6
+ metadata.gz: 2ce480868d1d29eed3e7d75d4968c6f48da8f18363ead5ccb226fb43fcc2ab2233a6bca726fdb9f02c32d7ca971a0f15b2eaa3449a6a855c2678a539f1deccce
7
+ data.tar.gz: 6cc574faa0e19a6cfac294a68142c543e6ac27dc3bf819c5b0e9abb4d6186f7f8fad95aa36429f06d0861b7170ee0b40407db9d95e530bcc7be4d075aa4bce72
@@ -1,5 +1,9 @@
1
1
  class ModifyLangPositionDefault < ActiveRecord::Migration
2
- def change
2
+ def self.up
3
3
  change_column :langs, :position, :integer, default: 10000
4
4
  end
5
+
6
+ def self.down
7
+ change_column :langs, :position, :integer, default: 1
8
+ end
5
9
  end
@@ -1,3 +1,3 @@
1
1
  module WeBridgeRailsEngineLangs
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -15050,3 +15050,108 @@ Migrating to ModifyLangPositionDefault (20150814101311)
15050
15050
  FROM sqlite_temp_master
15051
15051
  WHERE name='index_langs_on_code' AND type='index'
15052
15052
  
15053
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
15054
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15055
+ Migrating to ModifyLangPositionDefault (20150814101311)
15056
+  (0.1ms) begin transaction
15057
+  (0.1ms) rollback transaction
15058
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
15059
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15060
+ Migrating to ModifyLangPositionDefault (20150814101311)
15061
+  (0.1ms) begin transaction
15062
+  (0.1ms) rollback transaction
15063
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
15064
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15065
+ Migrating to ModifyLangPositionDefault (20150814101311)
15066
+  (0.1ms) begin transaction
15067
+  (2.0ms) CREATE TEMPORARY TABLE "alangs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 10000 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
15068
+  (0.3ms)  SELECT sql
15069
+ FROM sqlite_master
15070
+ WHERE name='index_langs_on_code' AND type='index'
15071
+ UNION ALL
15072
+ SELECT sql
15073
+ FROM sqlite_temp_master
15074
+ WHERE name='index_langs_on_code' AND type='index'
15075
+ 
15076
+  (0.1ms) select sqlite_version(*)
15077
+  (1.1ms) CREATE UNIQUE INDEX "tindex_alangs_on_code" ON "alangs" ("code")
15078
+  (0.7ms) SELECT * FROM "langs"
15079
+  (1.4ms) DROP TABLE "langs"
15080
+  (0.3ms) CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
15081
+  (0.1ms)  SELECT sql
15082
+ FROM sqlite_master
15083
+ WHERE name='tindex_alangs_on_code' AND type='index'
15084
+ UNION ALL
15085
+ SELECT sql
15086
+ FROM sqlite_temp_master
15087
+ WHERE name='tindex_alangs_on_code' AND type='index'
15088
+ 
15089
+  (0.6ms) CREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")
15090
+  (0.1ms) SELECT * FROM "alangs"
15091
+  (0.2ms) DROP TABLE "alangs"
15092
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20150814101311"]]
15093
+  (1.4ms) commit transaction
15094
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15095
+  (0.1ms) SELECT sql
15096
+ FROM sqlite_master
15097
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
15098
+ UNION ALL
15099
+ SELECT sql
15100
+ FROM sqlite_temp_master
15101
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
15102
+
15103
+  (0.1ms)  SELECT sql
15104
+ FROM sqlite_master
15105
+ WHERE name='index_langs_on_code' AND type='index'
15106
+ UNION ALL
15107
+ SELECT sql
15108
+ FROM sqlite_temp_master
15109
+ WHERE name='index_langs_on_code' AND type='index'
15110
+ 
15111
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
15112
+ Migrating to ModifyLangPositionDefault (20150814101311)
15113
+  (0.1ms) begin transaction
15114
+  (0.6ms) CREATE TEMPORARY TABLE "alangs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
15115
+  (0.1ms) SELECT sql
15116
+ FROM sqlite_master
15117
+ WHERE name='index_langs_on_code' AND type='index'
15118
+ UNION ALL
15119
+ SELECT sql
15120
+ FROM sqlite_temp_master
15121
+ WHERE name='index_langs_on_code' AND type='index'
15122
+
15123
+  (0.1ms) select sqlite_version(*)
15124
+  (0.3ms) CREATE UNIQUE INDEX "tindex_alangs_on_code" ON "alangs" ("code")
15125
+  (0.1ms) SELECT * FROM "langs"
15126
+  (1.0ms) DROP TABLE "langs"
15127
+  (0.3ms) CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 10000 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
15128
+  (0.1ms) SELECT sql
15129
+ FROM sqlite_master
15130
+ WHERE name='tindex_alangs_on_code' AND type='index'
15131
+ UNION ALL
15132
+ SELECT sql
15133
+ FROM sqlite_temp_master
15134
+ WHERE name='tindex_alangs_on_code' AND type='index'
15135
+
15136
+  (0.4ms) CREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")
15137
+  (0.1ms) SELECT * FROM "alangs"
15138
+  (0.2ms) DROP TABLE "alangs"
15139
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150814101311"]]
15140
+  (1.6ms) commit transaction
15141
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
15142
+  (0.1ms)  SELECT sql
15143
+ FROM sqlite_master
15144
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
15145
+ UNION ALL
15146
+ SELECT sql
15147
+ FROM sqlite_temp_master
15148
+ WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
15149
+ 
15150
+  (0.2ms) SELECT sql
15151
+ FROM sqlite_master
15152
+ WHERE name='index_langs_on_code' AND type='index'
15153
+ UNION ALL
15154
+ SELECT sql
15155
+ FROM sqlite_temp_master
15156
+ WHERE name='index_langs_on_code' AND type='index'
15157
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_bridge_rails_engine_langs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki