make_taggable 0.6.3 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/mysql_tests.yml +56 -0
  3. data/.github/workflows/pg_tests.yml +56 -0
  4. data/.github/workflows/{ci.yml → sqlite_tests.yml} +10 -10
  5. data/.github/workflows/standardrb-check.yml +37 -0
  6. data/.gitignore +3 -0
  7. data/Appraisals +4 -0
  8. data/README.md +77 -33
  9. data/Rakefile +4 -0
  10. data/UPGRADING.md +5 -0
  11. data/db/migrate/3_change_tag_name_collation_mysql.rb +7 -0
  12. data/db/migrate/{3_add_index_to_tags.rb → 4_add_index_to_tags.rb} +0 -0
  13. data/db/migrate/{4_add_index_to_taggings.rb → 5_add_index_to_taggings.rb} +0 -0
  14. data/lib/make_taggable.rb +3 -3
  15. data/lib/make_taggable/taggable/tagged_with_query/query_base.rb +4 -4
  16. data/lib/make_taggable/tagger.rb +1 -1
  17. data/lib/make_taggable/tagging.rb +1 -1
  18. data/lib/make_taggable/version.rb +1 -2
  19. data/lib/tasks/setup_test_db.rake +6 -0
  20. data/make_taggable.gemspec +22 -8
  21. data/spec/dummy/README.md +0 -24
  22. data/spec/dummy/app/models/cached_model_with_array.rb +0 -6
  23. data/spec/dummy/app/models/taggable_model_with_json.rb +6 -0
  24. data/spec/dummy/config/application.rb +2 -8
  25. data/spec/dummy/config/database.yml +1 -19
  26. data/spec/dummy/config/mysql_database.yml.ci +8 -0
  27. data/spec/dummy/config/pg_database.yml.ci +8 -0
  28. data/spec/dummy/db/migrate/{20201119220853_create_taggable_models.rb → 020201119220853_create_taggable_models.rb} +0 -0
  29. data/spec/dummy/db/migrate/{20201119221037_create_columns_override_models.rb → 020201119221037_create_columns_override_models.rb} +0 -0
  30. data/spec/dummy/db/migrate/{20201119221121_create_non_standard_id_taggable_models.rb → 020201119221121_create_non_standard_id_taggable_models.rb} +0 -0
  31. data/spec/dummy/db/migrate/{20201119221228_create_untaggable_models.rb → 020201119221228_create_untaggable_models.rb} +0 -0
  32. data/spec/dummy/db/migrate/{20201119221247_create_cached_models.rb → 020201119221247_create_cached_models.rb} +0 -0
  33. data/spec/dummy/db/migrate/{20201119221314_create_other_cached_models.rb → 020201119221314_create_other_cached_models.rb} +0 -0
  34. data/spec/dummy/db/migrate/{20201119221343_create_companies.rb → 020201119221343_create_companies.rb} +0 -0
  35. data/spec/dummy/db/migrate/{20201119221416_create_users.rb → 020201119221416_create_users.rb} +0 -0
  36. data/spec/dummy/db/migrate/{20201119221434_create_other_taggable_models.rb → 020201119221434_create_other_taggable_models.rb} +0 -0
  37. data/spec/dummy/db/migrate/{20201119221507_create_ordered_taggable_models.rb → 020201119221507_create_ordered_taggable_models.rb} +0 -0
  38. data/spec/dummy/db/migrate/{20201119221530_create_cache_methods_injected_models.rb → 020201119221530_create_cache_methods_injected_models.rb} +0 -0
  39. data/spec/dummy/db/migrate/{20201119221629_create_other_cached_with_array_models.rb → 020201119221629_create_other_cached_with_array_models.rb} +0 -0
  40. data/spec/dummy/db/migrate/{20201119221746_create_taggable_model_with_jsons.rb → 020201119221746_create_taggable_model_with_jsons.rb} +0 -0
  41. data/spec/make_taggable/tag_spec.rb +88 -250
  42. data/spec/make_taggable/taggable_spec.rb +1 -1
  43. data/spec/spec_helper.rb +0 -2
  44. metadata +116 -80
  45. data/.travis.yml +0 -36
  46. data/gemfiles/rails_5.gemfile +0 -9
  47. data/gemfiles/rails_6.gemfile +0 -9
  48. data/gemfiles/rails_master.gemfile +0 -9
  49. data/spec/dummy/db/migrate/20201119222429_create_make_taggable_tags.make_taggable_engine.rb +0 -11
  50. data/spec/dummy/db/migrate/20201119222430_create_make_taggable_taggings.make_taggable_engine.rb +0 -13
  51. data/spec/dummy/db/migrate/20201119222431_add_index_to_tags.make_taggable_engine.rb +0 -6
  52. data/spec/dummy/db/migrate/20201119222432_add_index_to_taggings.make_taggable_engine.rb +0 -13
  53. data/spec/dummy/db/schema.rb +0 -117
  54. data/spec/dummy/db/seeds.rb +0 -7
@@ -474,7 +474,7 @@ describe "Taggable" do
474
474
 
475
475
  expect(TaggableModel.tagged_with(%w[bob tricia], wild: true, any: true).to_a.sort_by { |o| o.id }).to eq([bob, frank, steve])
476
476
  expect(TaggableModel.tagged_with(%w[bob tricia], wild: true, exclude: true).to_a).to eq([jim])
477
- expect(TaggableModel.tagged_with("ji", wild: true, any: true).to_a =~ [frank, jim])
477
+ expect(TaggableModel.tagged_with("ji", wild: true, any: true).to_a).to match_array([frank, jim])
478
478
  end
479
479
  end
480
480
 
@@ -2,8 +2,6 @@
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
4
  require_relative "../spec/dummy/config/environment"
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../spec/dummy/db/migrate", __dir__)]
6
- ActiveRecord::Migration.maintain_test_schema!
7
5
 
8
6
  require "rspec/rails"
9
7
  require "rails"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: make_taggable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Kennedy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-11-20 00:00:00.000000000 Z
13
+ date: 2020-12-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -18,100 +18,134 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '5.2'
21
+ version: 5.2.0
22
+ - - "<="
23
+ - !ruby/object:Gem::Version
24
+ version: 6.2.0
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
29
  - - ">="
27
30
  - !ruby/object:Gem::Version
28
- version: '5.2'
31
+ version: 5.2.0
32
+ - - "<="
33
+ - !ruby/object:Gem::Version
34
+ version: 6.2.0
29
35
  - !ruby/object:Gem::Dependency
30
- name: rspec
36
+ name: appraisal
31
37
  requirement: !ruby/object:Gem::Requirement
32
38
  requirements:
33
- - - ">="
39
+ - - "~>"
34
40
  - !ruby/object:Gem::Version
35
- version: '3.0'
41
+ version: 2.3.0
36
42
  type: :development
37
43
  prerelease: false
38
44
  version_requirements: !ruby/object:Gem::Requirement
39
45
  requirements:
40
- - - ">="
46
+ - - "~>"
41
47
  - !ruby/object:Gem::Version
42
- version: '3.0'
48
+ version: 2.3.0
43
49
  - !ruby/object:Gem::Dependency
44
- name: rspec-rails
50
+ name: mysql2
45
51
  requirement: !ruby/object:Gem::Requirement
46
52
  requirements:
47
- - - ">="
53
+ - - "~>"
48
54
  - !ruby/object:Gem::Version
49
- version: '0'
55
+ version: 0.5.0
50
56
  type: :development
51
57
  prerelease: false
52
58
  version_requirements: !ruby/object:Gem::Requirement
53
59
  requirements:
54
- - - ">="
60
+ - - "~>"
55
61
  - !ruby/object:Gem::Version
56
- version: '0'
62
+ version: 0.5.0
57
63
  - !ruby/object:Gem::Dependency
58
- name: sqlite3
64
+ name: pg
59
65
  requirement: !ruby/object:Gem::Requirement
60
66
  requirements:
61
- - - ">="
67
+ - - "~>"
62
68
  - !ruby/object:Gem::Version
63
- version: '0'
69
+ version: 1.2.0
64
70
  type: :development
65
71
  prerelease: false
66
72
  version_requirements: !ruby/object:Gem::Requirement
67
73
  requirements:
68
- - - ">="
74
+ - - "~>"
69
75
  - !ruby/object:Gem::Version
70
- version: '0'
76
+ version: 1.2.0
77
+ - !ruby/object:Gem::Dependency
78
+ name: rspec
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 3.10.0
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 3.10.0
91
+ - !ruby/object:Gem::Dependency
92
+ name: rspec-rails
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 4.0.0
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 4.0.0
71
105
  - !ruby/object:Gem::Dependency
72
106
  name: standard
73
107
  requirement: !ruby/object:Gem::Requirement
74
108
  requirements:
75
- - - ">="
109
+ - - "~>"
76
110
  - !ruby/object:Gem::Version
77
- version: '0'
111
+ version: 0.10.0
78
112
  type: :development
79
113
  prerelease: false
80
114
  version_requirements: !ruby/object:Gem::Requirement
81
115
  requirements:
82
- - - ">="
116
+ - - "~>"
83
117
  - !ruby/object:Gem::Version
84
- version: '0'
118
+ version: 0.10.0
85
119
  - !ruby/object:Gem::Dependency
86
- name: appraisal
120
+ name: sqlite3
87
121
  requirement: !ruby/object:Gem::Requirement
88
122
  requirements:
89
- - - ">="
123
+ - - "~>"
90
124
  - !ruby/object:Gem::Version
91
- version: '0'
125
+ version: 1.4.0
92
126
  type: :development
93
127
  prerelease: false
94
128
  version_requirements: !ruby/object:Gem::Requirement
95
129
  requirements:
96
- - - ">="
130
+ - - "~>"
97
131
  - !ruby/object:Gem::Version
98
- version: '0'
99
- description: MakeTaggable is a fork of acts-as-taggable-on v6.5 with code updates
100
- and a new set of migrations.
132
+ version: 1.4.0
133
+ description: MakeTaggable is a fork of Acts-As-Taggable-On with code updates & fresh
134
+ migrations
101
135
  email:
102
136
  - m.kennedy@me.com
103
- - michael@intridea.com
104
- - joost@spacebabies.nl
105
137
  executables: []
106
138
  extensions: []
107
139
  extra_rdoc_files: []
108
140
  files:
109
- - ".github/workflows/ci.yml"
141
+ - ".github/workflows/mysql_tests.yml"
142
+ - ".github/workflows/pg_tests.yml"
143
+ - ".github/workflows/sqlite_tests.yml"
144
+ - ".github/workflows/standardrb-check.yml"
110
145
  - ".gitignore"
111
146
  - ".rspec"
112
147
  - ".standard.yml"
113
148
  - ".standard_todo.yml"
114
- - ".travis.yml"
115
149
  - Appraisals
116
150
  - CHANGELOG.md
117
151
  - CODE_OF_CONDUCT.md
@@ -121,15 +155,14 @@ files:
121
155
  - LICENSE.txt
122
156
  - README.md
123
157
  - Rakefile
158
+ - UPGRADING.md
124
159
  - bin/console
125
160
  - bin/setup
126
161
  - db/migrate/1_create_make_taggable_tags.rb
127
162
  - db/migrate/2_create_make_taggable_taggings.rb
128
- - db/migrate/3_add_index_to_tags.rb
129
- - db/migrate/4_add_index_to_taggings.rb
130
- - gemfiles/rails_5.gemfile
131
- - gemfiles/rails_6.gemfile
132
- - gemfiles/rails_master.gemfile
163
+ - db/migrate/3_change_tag_name_collation_mysql.rb
164
+ - db/migrate/4_add_index_to_tags.rb
165
+ - db/migrate/5_add_index_to_taggings.rb
133
166
  - lib/make_taggable.rb
134
167
  - lib/make_taggable/default_parser.rb
135
168
  - lib/make_taggable/engine.rb
@@ -153,6 +186,7 @@ files:
153
186
  - lib/make_taggable/tags_helper.rb
154
187
  - lib/make_taggable/utils.rb
155
188
  - lib/make_taggable/version.rb
189
+ - lib/tasks/setup_test_db.rake
156
190
  - lib/tasks/tags_collate_utf8.rake
157
191
  - make_taggable.gemspec
158
192
  - spec/dummy/README.md
@@ -179,6 +213,7 @@ files:
179
213
  - spec/dummy/app/models/other_taggable_model.rb
180
214
  - spec/dummy/app/models/student.rb
181
215
  - spec/dummy/app/models/taggable_model.rb
216
+ - spec/dummy/app/models/taggable_model_with_json.rb
182
217
  - spec/dummy/app/models/untaggable_model.rb
183
218
  - spec/dummy/app/models/user.rb
184
219
  - spec/dummy/app/views/layouts/mailer.html.erb
@@ -205,29 +240,25 @@ files:
205
240
  - spec/dummy/config/initializers/wrap_parameters.rb
206
241
  - spec/dummy/config/locales/en.yml
207
242
  - spec/dummy/config/master.key
243
+ - spec/dummy/config/mysql_database.yml.ci
244
+ - spec/dummy/config/pg_database.yml.ci
208
245
  - spec/dummy/config/puma.rb
209
246
  - spec/dummy/config/routes.rb
210
247
  - spec/dummy/config/spring.rb
211
248
  - spec/dummy/config/storage.yml
212
- - spec/dummy/db/migrate/20201119220853_create_taggable_models.rb
213
- - spec/dummy/db/migrate/20201119221037_create_columns_override_models.rb
214
- - spec/dummy/db/migrate/20201119221121_create_non_standard_id_taggable_models.rb
215
- - spec/dummy/db/migrate/20201119221228_create_untaggable_models.rb
216
- - spec/dummy/db/migrate/20201119221247_create_cached_models.rb
217
- - spec/dummy/db/migrate/20201119221314_create_other_cached_models.rb
218
- - spec/dummy/db/migrate/20201119221343_create_companies.rb
219
- - spec/dummy/db/migrate/20201119221416_create_users.rb
220
- - spec/dummy/db/migrate/20201119221434_create_other_taggable_models.rb
221
- - spec/dummy/db/migrate/20201119221507_create_ordered_taggable_models.rb
222
- - spec/dummy/db/migrate/20201119221530_create_cache_methods_injected_models.rb
223
- - spec/dummy/db/migrate/20201119221629_create_other_cached_with_array_models.rb
224
- - spec/dummy/db/migrate/20201119221746_create_taggable_model_with_jsons.rb
225
- - spec/dummy/db/migrate/20201119222429_create_make_taggable_tags.make_taggable_engine.rb
226
- - spec/dummy/db/migrate/20201119222430_create_make_taggable_taggings.make_taggable_engine.rb
227
- - spec/dummy/db/migrate/20201119222431_add_index_to_tags.make_taggable_engine.rb
228
- - spec/dummy/db/migrate/20201119222432_add_index_to_taggings.make_taggable_engine.rb
229
- - spec/dummy/db/schema.rb
230
- - spec/dummy/db/seeds.rb
249
+ - spec/dummy/db/migrate/020201119220853_create_taggable_models.rb
250
+ - spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb
251
+ - spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb
252
+ - spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb
253
+ - spec/dummy/db/migrate/020201119221247_create_cached_models.rb
254
+ - spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb
255
+ - spec/dummy/db/migrate/020201119221343_create_companies.rb
256
+ - spec/dummy/db/migrate/020201119221416_create_users.rb
257
+ - spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb
258
+ - spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb
259
+ - spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb
260
+ - spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb
261
+ - spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb
231
262
  - spec/dummy/lib/tasks/.keep
232
263
  - spec/dummy/log/.keep
233
264
  - spec/dummy/public/robots.txt
@@ -263,8 +294,16 @@ files:
263
294
  homepage: https://github.com/MatthewKennedy/make_taggable
264
295
  licenses:
265
296
  - MIT
266
- metadata: {}
267
- post_install_message:
297
+ metadata:
298
+ homepage_uri: https://github.com/MatthewKennedy/make_taggable
299
+ source_code_uri: https://github.com/MatthewKennedy/make_taggable
300
+ changelog_uri: https://github.com/MatthewKennedy/make_taggable/blob/master/CHANGELOG.md
301
+ post_install_message: |
302
+ When upgrading run the migrations generator
303
+
304
+ rails make_taggable_engine:install:migrations
305
+
306
+ This will create any new migrations and skip existing ones
268
307
  rdoc_options: []
269
308
  require_paths:
270
309
  - lib
@@ -272,7 +311,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
311
  requirements:
273
312
  - - ">="
274
313
  - !ruby/object:Gem::Version
275
- version: '0'
314
+ version: '2.5'
276
315
  required_rubygems_version: !ruby/object:Gem::Requirement
277
316
  requirements:
278
317
  - - ">="
@@ -308,6 +347,7 @@ test_files:
308
347
  - spec/dummy/app/models/other_taggable_model.rb
309
348
  - spec/dummy/app/models/student.rb
310
349
  - spec/dummy/app/models/taggable_model.rb
350
+ - spec/dummy/app/models/taggable_model_with_json.rb
311
351
  - spec/dummy/app/models/untaggable_model.rb
312
352
  - spec/dummy/app/models/user.rb
313
353
  - spec/dummy/app/views/layouts/mailer.html.erb
@@ -334,29 +374,25 @@ test_files:
334
374
  - spec/dummy/config/initializers/wrap_parameters.rb
335
375
  - spec/dummy/config/locales/en.yml
336
376
  - spec/dummy/config/master.key
377
+ - spec/dummy/config/mysql_database.yml.ci
378
+ - spec/dummy/config/pg_database.yml.ci
337
379
  - spec/dummy/config/puma.rb
338
380
  - spec/dummy/config/routes.rb
339
381
  - spec/dummy/config/spring.rb
340
382
  - spec/dummy/config/storage.yml
341
- - spec/dummy/db/migrate/20201119220853_create_taggable_models.rb
342
- - spec/dummy/db/migrate/20201119221037_create_columns_override_models.rb
343
- - spec/dummy/db/migrate/20201119221121_create_non_standard_id_taggable_models.rb
344
- - spec/dummy/db/migrate/20201119221228_create_untaggable_models.rb
345
- - spec/dummy/db/migrate/20201119221247_create_cached_models.rb
346
- - spec/dummy/db/migrate/20201119221314_create_other_cached_models.rb
347
- - spec/dummy/db/migrate/20201119221343_create_companies.rb
348
- - spec/dummy/db/migrate/20201119221416_create_users.rb
349
- - spec/dummy/db/migrate/20201119221434_create_other_taggable_models.rb
350
- - spec/dummy/db/migrate/20201119221507_create_ordered_taggable_models.rb
351
- - spec/dummy/db/migrate/20201119221530_create_cache_methods_injected_models.rb
352
- - spec/dummy/db/migrate/20201119221629_create_other_cached_with_array_models.rb
353
- - spec/dummy/db/migrate/20201119221746_create_taggable_model_with_jsons.rb
354
- - spec/dummy/db/migrate/20201119222429_create_make_taggable_tags.make_taggable_engine.rb
355
- - spec/dummy/db/migrate/20201119222430_create_make_taggable_taggings.make_taggable_engine.rb
356
- - spec/dummy/db/migrate/20201119222431_add_index_to_tags.make_taggable_engine.rb
357
- - spec/dummy/db/migrate/20201119222432_add_index_to_taggings.make_taggable_engine.rb
358
- - spec/dummy/db/schema.rb
359
- - spec/dummy/db/seeds.rb
383
+ - spec/dummy/db/migrate/020201119220853_create_taggable_models.rb
384
+ - spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb
385
+ - spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb
386
+ - spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb
387
+ - spec/dummy/db/migrate/020201119221247_create_cached_models.rb
388
+ - spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb
389
+ - spec/dummy/db/migrate/020201119221343_create_companies.rb
390
+ - spec/dummy/db/migrate/020201119221416_create_users.rb
391
+ - spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb
392
+ - spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb
393
+ - spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb
394
+ - spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb
395
+ - spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb
360
396
  - spec/dummy/lib/tasks/.keep
361
397
  - spec/dummy/log/.keep
362
398
  - spec/dummy/public/robots.txt
@@ -1,36 +0,0 @@
1
- ---
2
- os: linux
3
- dist: bionic
4
- language: ruby
5
- cache: bundler
6
-
7
- services:
8
- - mysql
9
- - postgresql
10
-
11
- rvm:
12
- - 2.7
13
- - 2.6
14
- - 2.5
15
-
16
- env:
17
- - DB=sqlite3
18
- - DB=mysql
19
- - DB=postgresql
20
-
21
- gemfile:
22
- - gemfiles/rails_5.gemfile
23
- - gemfiles/rails_6.gemfile
24
- - gemfiles/rails_master.gemfile
25
-
26
- bundler_args: '--without local_development --jobs 3 --retry 3'
27
-
28
- before_install:
29
- - gem update bundler
30
-
31
- script: bundle exec rake
32
-
33
- jobs:
34
- allow_failures:
35
- - rvm: ruby-head
36
- fast_finish: true
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "byebug", group: [:development, :test]
6
- gem "listen", group: [:development, :test]
7
- gem "rails", "~> 5.2.0"
8
-
9
- gemspec path: "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "byebug", group: [:development, :test]
6
- gem "listen", group: [:development, :test]
7
- gem "rails", "~> 6.0.0"
8
-
9
- gemspec path: "../"
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "byebug", group: [:development, :test]
6
- gem "listen", group: [:development, :test]
7
- gem "rails", git: "https://github.com/rails/rails.git"
8
-
9
- gemspec path: "../"
@@ -1,11 +0,0 @@
1
- # This migration comes from make_taggable_engine (originally 1)
2
- class CreateMakeTaggableTags < ActiveRecord::Migration[5.2]
3
- def change
4
- create_table MakeTaggable.tags_table do |t|
5
- t.string :name
6
- t.integer :taggings_count, default: 0
7
-
8
- t.timestamps
9
- end
10
- end
11
- end
@@ -1,13 +0,0 @@
1
- # This migration comes from make_taggable_engine (originally 2)
2
- class CreateMakeTaggableTaggings < ActiveRecord::Migration[5.2]
3
- def change
4
- create_table MakeTaggable.taggings_table do |t|
5
- t.references :tag, foreign_key: {to_table: MakeTaggable.tags_table}
6
- t.references :taggable, polymorphic: true
7
- t.references :tagger, polymorphic: true
8
- t.string :context, limit: 128
9
-
10
- t.timestamps
11
- end
12
- end
13
- end