visual_migrate 4.0.2.0 → 4.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/migration_defs.rb +3 -3
  3. data/lib/visual_migrate/migration.rb +6 -5
  4. data/lib/visual_migrate/version.rb +1 -1
  5. data/test/dummy/Gemfile +1 -1
  6. data/test/dummy/Gemfile.lock +76 -71
  7. data/test/dummy/db/migrate/20140426172335_allow_change_column_null.rb +5 -0
  8. data/test/dummy/log/development.log +2296 -0
  9. data/test/dummy/tmp/cache/assets/development/sprockets/0a9126be05e74d1b89f024c687b7dbfd +0 -0
  10. data/test/dummy/tmp/cache/assets/development/sprockets/0b682b760de6f7c47a7236f024fee55d +0 -0
  11. data/test/dummy/tmp/cache/assets/development/sprockets/0e059cd92931990c10b6c5b78014ec92 +0 -0
  12. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  13. data/test/dummy/tmp/cache/assets/development/sprockets/19bf9cd3f01562cdecb4b5c825c8f36d +0 -0
  14. data/test/dummy/tmp/cache/assets/development/sprockets/1ca61c0f83cf1cda3de0ad633721c2ba +0 -0
  15. data/test/dummy/tmp/cache/assets/development/sprockets/1cfd8251d42efec981eaf4703608990a +0 -0
  16. data/test/dummy/tmp/cache/assets/development/sprockets/272853fd0642f08e38174a609a2be457 +0 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/2aff43fdd4d59cb6a75288268ec363ee +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/2c853768baf811357d81d41bdfd05dcf +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/314d48e543146f617c4d3439a4d8d40d +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/3cb582b58b9b4f2c344e0997730d42b5 +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/42ad84505ad8dfc0a4a724e8c889c607 +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/576fe10a40538bd3999a2b1b3fe334d1 +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/5793e837a2934ce3b84aac8785a874ce +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/5a9053557c1035de31eb2162db5b9d34 +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/65048e3e4fd096e06f7ca69a5af7ab9f +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/6f7dfedc6e14ea8772e0284497539f90 +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/7999e525c88173c1beb785f002effc1d +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/7d48e39953ffcdd70751e98d08d1282c +0 -0
  31. data/test/dummy/tmp/cache/assets/development/sprockets/7ddca3ef38a810d93ddc026ee5fa7959 +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sprockets/81e2c910780674208531de16d24b4c3a +0 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/85a0730416bef6fb4dad85a65f458270 +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/a093237e72888c88a730f537a544e03b +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/a7c148cd78906c44016fdeb236569b5b +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/bc861e6c5df70d42dcf432bf5ba10b55 +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/c00bfe3da0096cbd0434a6c66262fe23 +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/c78109332f6461183a94718da0068da6 +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sprockets/cee8c6b09c33d2b276753e959712724e +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/d990155237ca59ccb96cf2253f8059ae +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/df600f50f002512c95d93bcfbab891ed +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/eb7b0ec5bff36142ba070d1a39e194b1 +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/f898358aceb33227eb4403237acca034 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/fc7201c6cbef32453aa4175c520c8eae +0 -0
  48. data/test/dummy/tmp/visual_migrate_tmp.rb +2 -6
  49. metadata +12 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ed6e3ba40eafc9b39affa2a64c2d968429b9daf
4
- data.tar.gz: 308c5cdd2ea3a260ea58af79d28e5da3124273cc
3
+ metadata.gz: 62ec973bfce772df5756dee5f361b37bb43b2f7a
4
+ data.tar.gz: a4bb1e2447568d9ce99462942f2748ab95326b2d
5
5
  SHA512:
6
- metadata.gz: c60c638d5244ff5d2466c1aa9b6954e46a9cb3296626edc49724d0b80b520a6e43ce3f80a9d1545e1932e7b936f7d7663ab45dd36c59443867c3d403b96cd974
7
- data.tar.gz: 624d08fabcbf4da160bc9a7b9879321998af427f166b6221eb9bcb2715ff27e7bc237e18ac22f578d0b75b0892c997138fbc3e02cf7c76b30150ba6eb99f79c6
6
+ metadata.gz: 390fce32805d252376a352ddfd8753c8d685ae910576f1fcc66c7a4fca29bb6185b936bbcf82407f88dd1c1cb0a179f079a06c077c503b4db1a92d26677b25a3
7
+ data.tar.gz: d92ab52f318bd4e83a44dc6879d4704b9b0e5dd4e8729ec646579293649943b4994cfe876f07271f69f42e5a7be617bce78d6cf7ea20393e749e335922c3bc7d
@@ -10,7 +10,7 @@ module MigrationDefs
10
10
  #'change_table' => 'テーブル定義を変更',#not support
11
11
  'add_column' => 'カラムの追加',
12
12
  'rename_column' => 'カラム名の変更',
13
- 'change_column' => 'カラムの変更カラムの変更',
13
+ 'change_column' => 'カラムの変更',
14
14
  'remove_column' => 'カラムの削除',
15
15
  #'remove_columns' => '複数のカラムを削除',#not support
16
16
  'change_column_default' => 'カラムの初期値を設定',
@@ -165,7 +165,7 @@ module MigrationDefs
165
165
  'scale' => '小数点以下の桁数',
166
166
  }
167
167
 
168
- def initialize(limit = nil, default = nil, is_null = true, precision = nil, scale = nil)
168
+ def initialize(limit = nil, default = nil, is_null = false, precision = nil, scale = nil)
169
169
  @limit = limit
170
170
  @default = default
171
171
  @null = is_null
@@ -177,7 +177,7 @@ module MigrationDefs
177
177
  result = ''
178
178
  result += ", :limit => #{@limit.to_s}" if !@limit.blank? && @limit != 0
179
179
  result += ", :default => #{@default.to_s}" if !@default.blank?
180
- result += ", :null => #{false.to_s}" if !@null
180
+ result += ", :null => #{@null.to_s}" if !@null.blank?
181
181
  result += ", :precision => #{@precision.to_s}" if !@precision.nil? && @precision != 0
182
182
  result += ", :scale => #{@scale.to_s}" if !@scale.nil? && @scale != 0
183
183
  result
@@ -3,13 +3,14 @@ require 'active_record/migration'
3
3
  module VisualMigrate
4
4
  class ActiveRecord::Migrator#:nodoc:
5
5
  class << self
6
- process_method = instance_method(:needs_migration?)
7
- undef :needs_migration?
6
+ #process_method = instance_method(:needs_migration?)
7
+ #undef :needs_migration?
8
8
 
9
- define_method :needs_migration? do
10
- false#current_version < last_version
9
+ #define_method(needs_migration?) do |connection|
10
+ def needs_migration?(connection)
11
+ false#current_version(connection) < last_version
11
12
  end
12
-
13
13
  end
14
14
  end
15
+
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module VisualMigrate
2
- VERSION = "4.0.2.0"
2
+ VERSION = "4.1.0.0"
3
3
  end
data/test/dummy/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 4.0.0'
3
+ gem 'rails', '~> 4.1.0'
4
4
  gem 'rake', '~> 10.1.0'
5
5
 
6
6
  gem 'rubytree', '0.7.0'
@@ -7,45 +7,46 @@ GIT
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionmailer (4.0.1)
11
- actionpack (= 4.0.1)
10
+ actionmailer (4.1.0)
11
+ actionpack (= 4.1.0)
12
+ actionview (= 4.1.0)
12
13
  mail (~> 2.5.4)
13
- actionpack (4.0.1)
14
- activesupport (= 4.0.1)
15
- builder (~> 3.1.0)
16
- erubis (~> 2.7.0)
14
+ actionpack (4.1.0)
15
+ actionview (= 4.1.0)
16
+ activesupport (= 4.1.0)
17
17
  rack (~> 1.5.2)
18
18
  rack-test (~> 0.6.2)
19
- activemodel (4.0.1)
20
- activesupport (= 4.0.1)
21
- builder (~> 3.1.0)
22
- activerecord (4.0.1)
23
- activemodel (= 4.0.1)
24
- activerecord-deprecated_finders (~> 1.0.2)
25
- activesupport (= 4.0.1)
26
- arel (~> 4.0.0)
27
- activerecord-deprecated_finders (1.0.3)
28
- activesupport (4.0.1)
29
- i18n (~> 0.6, >= 0.6.4)
30
- minitest (~> 4.2)
31
- multi_json (~> 1.3)
19
+ actionview (4.1.0)
20
+ activesupport (= 4.1.0)
21
+ builder (~> 3.1)
22
+ erubis (~> 2.7.0)
23
+ activemodel (4.1.0)
24
+ activesupport (= 4.1.0)
25
+ builder (~> 3.1)
26
+ activerecord (4.1.0)
27
+ activemodel (= 4.1.0)
28
+ activesupport (= 4.1.0)
29
+ arel (~> 5.0.0)
30
+ activesupport (4.1.0)
31
+ i18n (~> 0.6, >= 0.6.9)
32
+ json (~> 1.7, >= 1.7.7)
33
+ minitest (~> 5.1)
32
34
  thread_safe (~> 0.1)
33
- tzinfo (~> 0.3.37)
35
+ tzinfo (~> 1.1)
34
36
  archive-tar-minitar (0.5.2)
35
- arel (4.0.1)
36
- atomic (1.1.14)
37
- bcrypt-ruby (3.1.2)
38
- builder (3.1.4)
37
+ arel (5.0.1.20140414130214)
38
+ bcrypt (3.1.7)
39
+ builder (3.2.2)
39
40
  coffee-rails (4.0.1)
40
41
  coffee-script (>= 2.2.0)
41
42
  railties (>= 4.0.0, < 5.0)
42
43
  coffee-script (2.2.0)
43
44
  coffee-script-source
44
45
  execjs
45
- coffee-script-source (1.6.3)
46
- columnize (0.3.6)
47
- devise (3.2.1)
48
- bcrypt-ruby (~> 3.0)
46
+ coffee-script-source (1.7.0)
47
+ columnize (0.8.9)
48
+ devise (3.2.4)
49
+ bcrypt (~> 3.0)
49
50
  orm_adapter (~> 0.1)
50
51
  railties (>= 3.2.6, < 5)
51
52
  thread_safe (~> 0.1)
@@ -54,11 +55,11 @@ GEM
54
55
  erubis (2.7.0)
55
56
  execjs (2.0.2)
56
57
  hike (1.2.3)
57
- i18n (0.6.5)
58
- jbuilder (1.5.2)
58
+ i18n (0.6.9)
59
+ jbuilder (1.5.3)
59
60
  activesupport (>= 3.0.0)
60
61
  multi_json (>= 1.2.0)
61
- jquery-rails (3.0.4)
62
+ jquery-rails (3.1.0)
62
63
  railties (>= 3.0, < 5.0)
63
64
  thor (>= 0.14, < 2.0)
64
65
  json (1.8.1)
@@ -69,47 +70,50 @@ GEM
69
70
  mail (2.5.4)
70
71
  mime-types (~> 1.16)
71
72
  treetop (~> 1.4.8)
72
- metaclass (0.0.1)
73
- mime-types (1.25)
74
- minitest (4.7.5)
75
- mocha (0.14.0)
73
+ metaclass (0.0.4)
74
+ mime-types (1.25.1)
75
+ minitest (5.3.3)
76
+ mocha (1.0.0)
76
77
  metaclass (~> 0.0.1)
77
- multi_json (1.8.2)
78
- mysql2 (0.3.14)
78
+ multi_json (1.9.2)
79
+ mysql2 (0.3.15)
79
80
  orm_adapter (0.5.0)
80
81
  pg (0.9.0)
81
- polyglot (0.3.3)
82
+ polyglot (0.3.4)
82
83
  postgres-pr (0.6.3)
83
84
  rack (1.5.2)
84
85
  rack-test (0.6.2)
85
86
  rack (>= 1.0)
86
- rails (4.0.1)
87
- actionmailer (= 4.0.1)
88
- actionpack (= 4.0.1)
89
- activerecord (= 4.0.1)
90
- activesupport (= 4.0.1)
87
+ rails (4.1.0)
88
+ actionmailer (= 4.1.0)
89
+ actionpack (= 4.1.0)
90
+ actionview (= 4.1.0)
91
+ activemodel (= 4.1.0)
92
+ activerecord (= 4.1.0)
93
+ activesupport (= 4.1.0)
91
94
  bundler (>= 1.3.0, < 2.0)
92
- railties (= 4.0.1)
93
- sprockets-rails (~> 2.0.0)
94
- railties (4.0.1)
95
- actionpack (= 4.0.1)
96
- activesupport (= 4.0.1)
95
+ railties (= 4.1.0)
96
+ sprockets-rails (~> 2.0)
97
+ railties (4.1.0)
98
+ actionpack (= 4.1.0)
99
+ activesupport (= 4.1.0)
97
100
  rake (>= 0.8.7)
98
101
  thor (>= 0.18.1, < 2.0)
99
- rake (10.1.0)
102
+ rake (10.1.1)
100
103
  rbx-require-relative (0.0.9)
101
- rdoc (3.12.2)
104
+ rdoc (4.1.1)
102
105
  json (~> 1.4)
103
106
  rspec (2.14.1)
104
107
  rspec-core (~> 2.14.0)
105
108
  rspec-expectations (~> 2.14.0)
106
109
  rspec-mocks (~> 2.14.0)
107
- rspec-core (2.14.7)
108
- rspec-expectations (2.14.4)
110
+ rspec-core (2.14.8)
111
+ rspec-expectations (2.14.5)
109
112
  diff-lcs (>= 1.1.3, < 2.0)
110
- rspec-mocks (2.14.4)
111
- rspec-rails (2.14.0)
113
+ rspec-mocks (2.14.6)
114
+ rspec-rails (2.14.2)
112
115
  actionpack (>= 3.0)
116
+ activemodel (>= 3.0)
113
117
  activesupport (>= 3.0)
114
118
  railties (>= 3.0)
115
119
  rspec-core (~> 2.14.0)
@@ -131,37 +135,38 @@ GEM
131
135
  ruby_core_source (0.1.5)
132
136
  archive-tar-minitar (>= 0.5.2)
133
137
  rubytree (0.7.0)
134
- sass (3.2.12)
135
- sass-rails (4.0.1)
138
+ sass (3.2.19)
139
+ sass-rails (4.0.3)
136
140
  railties (>= 4.0.0, < 5.0)
137
- sass (>= 3.1.10)
138
- sprockets-rails (~> 2.0.0)
139
- sdoc (0.3.20)
140
- json (>= 1.1.3)
141
- rdoc (~> 3.10)
141
+ sass (~> 3.2.0)
142
+ sprockets (~> 2.8, <= 2.11.0)
143
+ sprockets-rails (~> 2.0)
144
+ sdoc (0.4.0)
145
+ json (~> 1.8)
146
+ rdoc (~> 4.0, < 5.0)
142
147
  shoulda (2.10.3)
143
- sprockets (2.10.0)
148
+ sprockets (2.11.0)
144
149
  hike (~> 1.2)
145
150
  multi_json (~> 1.0)
146
151
  rack (~> 1.0)
147
152
  tilt (~> 1.1, != 1.3.0)
148
- sprockets-rails (2.0.1)
153
+ sprockets-rails (2.1.3)
149
154
  actionpack (>= 3.0)
150
155
  activesupport (>= 3.0)
151
156
  sprockets (~> 2.8)
152
- sqlite3 (1.3.8)
157
+ sqlite3 (1.3.9)
153
158
  test-unit (2.5.5)
154
- thor (0.18.1)
155
- thread_safe (0.1.3)
156
- atomic
159
+ thor (0.19.1)
160
+ thread_safe (0.3.3)
157
161
  tilt (1.4.1)
158
162
  treetop (1.4.15)
159
163
  polyglot
160
164
  polyglot (>= 0.3.1)
161
- turbolinks (1.3.1)
165
+ turbolinks (2.2.2)
162
166
  coffee-rails
163
- tzinfo (0.3.38)
164
- uglifier (2.3.1)
167
+ tzinfo (1.1.0)
168
+ thread_safe (~> 0.1)
169
+ uglifier (2.5.0)
165
170
  execjs (>= 0.3.0)
166
171
  json (>= 1.8.0)
167
172
  warden (1.2.3)
@@ -180,7 +185,7 @@ DEPENDENCIES
180
185
  object_daddy!
181
186
  pg (~> 0.9.0)
182
187
  postgres-pr
183
- rails (~> 4.0.0)
188
+ rails (~> 4.1.0)
184
189
  rake (~> 10.1.0)
185
190
  rspec
186
191
  rspec-rails
@@ -0,0 +1,5 @@
1
+ class AllowChangeColumnNull < ActiveRecord::Migration
2
+ def change
3
+ change_column(:test_tables, :id, :string, :null => (true))
4
+ end
5
+ end