make_taggable 0.6.6 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) 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 +47 -27
  9. data/Rakefile +1 -0
  10. data/lib/make_taggable.rb +3 -3
  11. data/lib/make_taggable/version.rb +1 -2
  12. data/lib/tasks/setup_test_db.rake +6 -0
  13. data/make_taggable.gemspec +10 -8
  14. data/spec/dummy/README.md +0 -24
  15. data/spec/dummy/app/models/cached_model_with_array.rb +0 -6
  16. data/spec/dummy/app/models/taggable_model_with_json.rb +6 -0
  17. data/spec/dummy/config/application.rb +2 -8
  18. data/spec/dummy/config/database.yml +1 -19
  19. data/spec/dummy/config/mysql_database.yml.ci +8 -0
  20. data/spec/dummy/config/pg_database.yml.ci +8 -0
  21. data/spec/dummy/db/migrate/{20201119220853_create_taggable_models.rb → 020201119220853_create_taggable_models.rb} +0 -0
  22. data/spec/dummy/db/migrate/{20201119221037_create_columns_override_models.rb → 020201119221037_create_columns_override_models.rb} +0 -0
  23. data/spec/dummy/db/migrate/{20201119221121_create_non_standard_id_taggable_models.rb → 020201119221121_create_non_standard_id_taggable_models.rb} +0 -0
  24. data/spec/dummy/db/migrate/{20201119221228_create_untaggable_models.rb → 020201119221228_create_untaggable_models.rb} +0 -0
  25. data/spec/dummy/db/migrate/{20201119221247_create_cached_models.rb → 020201119221247_create_cached_models.rb} +0 -0
  26. data/spec/dummy/db/migrate/{20201119221314_create_other_cached_models.rb → 020201119221314_create_other_cached_models.rb} +0 -0
  27. data/spec/dummy/db/migrate/{20201119221343_create_companies.rb → 020201119221343_create_companies.rb} +0 -0
  28. data/spec/dummy/db/migrate/{20201119221416_create_users.rb → 020201119221416_create_users.rb} +0 -0
  29. data/spec/dummy/db/migrate/{20201119221434_create_other_taggable_models.rb → 020201119221434_create_other_taggable_models.rb} +0 -0
  30. data/spec/dummy/db/migrate/{20201119221507_create_ordered_taggable_models.rb → 020201119221507_create_ordered_taggable_models.rb} +0 -0
  31. data/spec/dummy/db/migrate/{20201119221530_create_cache_methods_injected_models.rb → 020201119221530_create_cache_methods_injected_models.rb} +0 -0
  32. data/spec/dummy/db/migrate/{20201119221629_create_other_cached_with_array_models.rb → 020201119221629_create_other_cached_with_array_models.rb} +0 -0
  33. data/spec/dummy/db/migrate/{20201119221746_create_taggable_model_with_jsons.rb → 020201119221746_create_taggable_model_with_jsons.rb} +0 -0
  34. data/spec/make_taggable/tag_spec.rb +88 -250
  35. data/spec/make_taggable/taggable_spec.rb +1 -1
  36. data/spec/spec_helper.rb +0 -2
  37. metadata +77 -59
  38. data/.travis.yml +0 -36
  39. data/gemfiles/rails_5.gemfile +0 -9
  40. data/gemfiles/rails_6.gemfile +0 -9
  41. data/gemfiles/rails_master.gemfile +0 -9
  42. data/spec/dummy/db/migrate/20201121222007_create_make_taggable_tags.make_taggable_engine.rb +0 -11
  43. data/spec/dummy/db/migrate/20201121222008_create_make_taggable_taggings.make_taggable_engine.rb +0 -13
  44. data/spec/dummy/db/migrate/20201121222009_change_tag_name_collation_mysql.make_taggable_engine.rb +0 -8
  45. data/spec/dummy/db/migrate/20201121222010_add_index_to_tags.make_taggable_engine.rb +0 -6
  46. data/spec/dummy/db/migrate/20201121222011_add_index_to_taggings.make_taggable_engine.rb +0 -13
  47. data/spec/dummy/db/schema.rb +0 -117
  48. 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).to match_array([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.6
4
+ version: 0.7.0
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-21 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,30 +18,30 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '5.2'
21
+ version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '5.2'
28
+ version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
- name: rspec
30
+ name: appraisal
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: '3.0'
35
+ version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '3.0'
42
+ version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
- name: rspec-rails
44
+ name: mysql2
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
@@ -55,7 +55,35 @@ dependencies:
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
- name: sqlite3
58
+ name: pg
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: rspec-rails
59
87
  requirement: !ruby/object:Gem::Requirement
60
88
  requirements:
61
89
  - - ">="
@@ -83,7 +111,7 @@ dependencies:
83
111
  - !ruby/object:Gem::Version
84
112
  version: '0'
85
113
  - !ruby/object:Gem::Dependency
86
- name: appraisal
114
+ name: sqlite3
87
115
  requirement: !ruby/object:Gem::Requirement
88
116
  requirements:
89
117
  - - ">="
@@ -96,22 +124,22 @@ dependencies:
96
124
  - - ">="
97
125
  - !ruby/object:Gem::Version
98
126
  version: '0'
99
- description: A fork of acts-as-taggable-on v6.5 with code updates and a new set of
100
- migrations.
127
+ description: MakeTaggable is a fork of Acts-As-Taggable-On with code updates & fresh
128
+ migrations
101
129
  email:
102
130
  - m.kennedy@me.com
103
- - michael@intridea.com
104
- - joost@spacebabies.nl
105
131
  executables: []
106
132
  extensions: []
107
133
  extra_rdoc_files: []
108
134
  files:
109
- - ".github/workflows/ci.yml"
135
+ - ".github/workflows/mysql_tests.yml"
136
+ - ".github/workflows/pg_tests.yml"
137
+ - ".github/workflows/sqlite_tests.yml"
138
+ - ".github/workflows/standardrb-check.yml"
110
139
  - ".gitignore"
111
140
  - ".rspec"
112
141
  - ".standard.yml"
113
142
  - ".standard_todo.yml"
114
- - ".travis.yml"
115
143
  - Appraisals
116
144
  - CHANGELOG.md
117
145
  - CODE_OF_CONDUCT.md
@@ -129,9 +157,6 @@ files:
129
157
  - db/migrate/3_change_tag_name_collation_mysql.rb
130
158
  - db/migrate/4_add_index_to_tags.rb
131
159
  - db/migrate/5_add_index_to_taggings.rb
132
- - gemfiles/rails_5.gemfile
133
- - gemfiles/rails_6.gemfile
134
- - gemfiles/rails_master.gemfile
135
160
  - lib/make_taggable.rb
136
161
  - lib/make_taggable/default_parser.rb
137
162
  - lib/make_taggable/engine.rb
@@ -155,6 +180,7 @@ files:
155
180
  - lib/make_taggable/tags_helper.rb
156
181
  - lib/make_taggable/utils.rb
157
182
  - lib/make_taggable/version.rb
183
+ - lib/tasks/setup_test_db.rake
158
184
  - lib/tasks/tags_collate_utf8.rake
159
185
  - make_taggable.gemspec
160
186
  - spec/dummy/README.md
@@ -181,6 +207,7 @@ files:
181
207
  - spec/dummy/app/models/other_taggable_model.rb
182
208
  - spec/dummy/app/models/student.rb
183
209
  - spec/dummy/app/models/taggable_model.rb
210
+ - spec/dummy/app/models/taggable_model_with_json.rb
184
211
  - spec/dummy/app/models/untaggable_model.rb
185
212
  - spec/dummy/app/models/user.rb
186
213
  - spec/dummy/app/views/layouts/mailer.html.erb
@@ -207,30 +234,25 @@ files:
207
234
  - spec/dummy/config/initializers/wrap_parameters.rb
208
235
  - spec/dummy/config/locales/en.yml
209
236
  - spec/dummy/config/master.key
237
+ - spec/dummy/config/mysql_database.yml.ci
238
+ - spec/dummy/config/pg_database.yml.ci
210
239
  - spec/dummy/config/puma.rb
211
240
  - spec/dummy/config/routes.rb
212
241
  - spec/dummy/config/spring.rb
213
242
  - spec/dummy/config/storage.yml
214
- - spec/dummy/db/migrate/20201119220853_create_taggable_models.rb
215
- - spec/dummy/db/migrate/20201119221037_create_columns_override_models.rb
216
- - spec/dummy/db/migrate/20201119221121_create_non_standard_id_taggable_models.rb
217
- - spec/dummy/db/migrate/20201119221228_create_untaggable_models.rb
218
- - spec/dummy/db/migrate/20201119221247_create_cached_models.rb
219
- - spec/dummy/db/migrate/20201119221314_create_other_cached_models.rb
220
- - spec/dummy/db/migrate/20201119221343_create_companies.rb
221
- - spec/dummy/db/migrate/20201119221416_create_users.rb
222
- - spec/dummy/db/migrate/20201119221434_create_other_taggable_models.rb
223
- - spec/dummy/db/migrate/20201119221507_create_ordered_taggable_models.rb
224
- - spec/dummy/db/migrate/20201119221530_create_cache_methods_injected_models.rb
225
- - spec/dummy/db/migrate/20201119221629_create_other_cached_with_array_models.rb
226
- - spec/dummy/db/migrate/20201119221746_create_taggable_model_with_jsons.rb
227
- - spec/dummy/db/migrate/20201121222007_create_make_taggable_tags.make_taggable_engine.rb
228
- - spec/dummy/db/migrate/20201121222008_create_make_taggable_taggings.make_taggable_engine.rb
229
- - spec/dummy/db/migrate/20201121222009_change_tag_name_collation_mysql.make_taggable_engine.rb
230
- - spec/dummy/db/migrate/20201121222010_add_index_to_tags.make_taggable_engine.rb
231
- - spec/dummy/db/migrate/20201121222011_add_index_to_taggings.make_taggable_engine.rb
232
- - spec/dummy/db/schema.rb
233
- - spec/dummy/db/seeds.rb
243
+ - spec/dummy/db/migrate/020201119220853_create_taggable_models.rb
244
+ - spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb
245
+ - spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb
246
+ - spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb
247
+ - spec/dummy/db/migrate/020201119221247_create_cached_models.rb
248
+ - spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb
249
+ - spec/dummy/db/migrate/020201119221343_create_companies.rb
250
+ - spec/dummy/db/migrate/020201119221416_create_users.rb
251
+ - spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb
252
+ - spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb
253
+ - spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb
254
+ - spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb
255
+ - spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb
234
256
  - spec/dummy/lib/tasks/.keep
235
257
  - spec/dummy/log/.keep
236
258
  - spec/dummy/public/robots.txt
@@ -316,6 +338,7 @@ test_files:
316
338
  - spec/dummy/app/models/other_taggable_model.rb
317
339
  - spec/dummy/app/models/student.rb
318
340
  - spec/dummy/app/models/taggable_model.rb
341
+ - spec/dummy/app/models/taggable_model_with_json.rb
319
342
  - spec/dummy/app/models/untaggable_model.rb
320
343
  - spec/dummy/app/models/user.rb
321
344
  - spec/dummy/app/views/layouts/mailer.html.erb
@@ -342,30 +365,25 @@ test_files:
342
365
  - spec/dummy/config/initializers/wrap_parameters.rb
343
366
  - spec/dummy/config/locales/en.yml
344
367
  - spec/dummy/config/master.key
368
+ - spec/dummy/config/mysql_database.yml.ci
369
+ - spec/dummy/config/pg_database.yml.ci
345
370
  - spec/dummy/config/puma.rb
346
371
  - spec/dummy/config/routes.rb
347
372
  - spec/dummy/config/spring.rb
348
373
  - spec/dummy/config/storage.yml
349
- - spec/dummy/db/migrate/20201119220853_create_taggable_models.rb
350
- - spec/dummy/db/migrate/20201119221037_create_columns_override_models.rb
351
- - spec/dummy/db/migrate/20201119221121_create_non_standard_id_taggable_models.rb
352
- - spec/dummy/db/migrate/20201119221228_create_untaggable_models.rb
353
- - spec/dummy/db/migrate/20201119221247_create_cached_models.rb
354
- - spec/dummy/db/migrate/20201119221314_create_other_cached_models.rb
355
- - spec/dummy/db/migrate/20201119221343_create_companies.rb
356
- - spec/dummy/db/migrate/20201119221416_create_users.rb
357
- - spec/dummy/db/migrate/20201119221434_create_other_taggable_models.rb
358
- - spec/dummy/db/migrate/20201119221507_create_ordered_taggable_models.rb
359
- - spec/dummy/db/migrate/20201119221530_create_cache_methods_injected_models.rb
360
- - spec/dummy/db/migrate/20201119221629_create_other_cached_with_array_models.rb
361
- - spec/dummy/db/migrate/20201119221746_create_taggable_model_with_jsons.rb
362
- - spec/dummy/db/migrate/20201121222007_create_make_taggable_tags.make_taggable_engine.rb
363
- - spec/dummy/db/migrate/20201121222008_create_make_taggable_taggings.make_taggable_engine.rb
364
- - spec/dummy/db/migrate/20201121222009_change_tag_name_collation_mysql.make_taggable_engine.rb
365
- - spec/dummy/db/migrate/20201121222010_add_index_to_tags.make_taggable_engine.rb
366
- - spec/dummy/db/migrate/20201121222011_add_index_to_taggings.make_taggable_engine.rb
367
- - spec/dummy/db/schema.rb
368
- - spec/dummy/db/seeds.rb
374
+ - spec/dummy/db/migrate/020201119220853_create_taggable_models.rb
375
+ - spec/dummy/db/migrate/020201119221037_create_columns_override_models.rb
376
+ - spec/dummy/db/migrate/020201119221121_create_non_standard_id_taggable_models.rb
377
+ - spec/dummy/db/migrate/020201119221228_create_untaggable_models.rb
378
+ - spec/dummy/db/migrate/020201119221247_create_cached_models.rb
379
+ - spec/dummy/db/migrate/020201119221314_create_other_cached_models.rb
380
+ - spec/dummy/db/migrate/020201119221343_create_companies.rb
381
+ - spec/dummy/db/migrate/020201119221416_create_users.rb
382
+ - spec/dummy/db/migrate/020201119221434_create_other_taggable_models.rb
383
+ - spec/dummy/db/migrate/020201119221507_create_ordered_taggable_models.rb
384
+ - spec/dummy/db/migrate/020201119221530_create_cache_methods_injected_models.rb
385
+ - spec/dummy/db/migrate/020201119221629_create_other_cached_with_array_models.rb
386
+ - spec/dummy/db/migrate/020201119221746_create_taggable_model_with_jsons.rb
369
387
  - spec/dummy/lib/tasks/.keep
370
388
  - spec/dummy/log/.keep
371
389
  - 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
@@ -1,8 +0,0 @@
1
- # This migration comes from make_taggable_engine (originally 3)
2
- class ChangeTagNameCollationMysql < ActiveRecord::Migration[5.2]
3
- def change
4
- if MakeTaggable::Utils.using_mysql?
5
- execute("ALTER TABLE #{MakeTaggable.tags_table} MODIFY name varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;")
6
- end
7
- end
8
- end
@@ -1,6 +0,0 @@
1
- # This migration comes from make_taggable_engine (originally 4)
2
- class AddIndexToTags < ActiveRecord::Migration[5.2]
3
- def change
4
- add_index MakeTaggable.tags_table, :name, unique: true
5
- end
6
- end
@@ -1,13 +0,0 @@
1
- # This migration comes from make_taggable_engine (originally 5)
2
- class AddIndexToTaggings < ActiveRecord::Migration[5.2]
3
- def change
4
- add_index MakeTaggable.taggings_table, :taggable_id
5
- add_index MakeTaggable.taggings_table, :tagger_id
6
- add_index MakeTaggable.taggings_table, :taggable_type
7
- add_index MakeTaggable.taggings_table, :context
8
- add_index MakeTaggable.taggings_table, [:tagger_id, :tagger_type]
9
- add_index MakeTaggable.taggings_table, [:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type], unique: true, name: "taggings_idx"
10
- add_index MakeTaggable.taggings_table, [:taggable_id, :taggable_type, :context], name: "taggings_taggable_context_idx"
11
- add_index MakeTaggable.taggings_table, [:taggable_id, :taggable_type, :tagger_id, :context], name: "taggings_idy"
12
- end
13
- end
@@ -1,117 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # This file is the source Rails uses to define your schema when running `rails
6
- # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
7
- # be faster and is potentially less error prone than running all of your
8
- # migrations from scratch. Old migrations may fail to apply correctly if those
9
- # migrations use external dependencies or application code.
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(version: 2020_11_21_222011) do
14
-
15
- create_table "cache_methods_injected_models", force: :cascade do |t|
16
- t.string "cached_tag_list"
17
- end
18
-
19
- create_table "cached_models", force: :cascade do |t|
20
- t.string "name"
21
- t.string "type"
22
- t.string "cached_tag_list"
23
- end
24
-
25
- create_table "columns_override_models", force: :cascade do |t|
26
- t.string "name"
27
- t.string "type"
28
- t.string "ignored_column"
29
- end
30
-
31
- create_table "companies", force: :cascade do |t|
32
- t.string "name"
33
- end
34
-
35
- create_table "non_standard_id_taggable_models", primary_key: "an_id", force: :cascade do |t|
36
- t.string "name"
37
- t.string "type"
38
- end
39
-
40
- create_table "ordered_taggable_models", force: :cascade do |t|
41
- t.string "name"
42
- t.string "type"
43
- end
44
-
45
- create_table "other_cached_models", force: :cascade do |t|
46
- t.string "name"
47
- t.string "type"
48
- t.string "cached_language_list"
49
- t.string "cached_status_list"
50
- t.string "cached_glass_list"
51
- end
52
-
53
- create_table "other_cached_with_array_models", force: :cascade do |t|
54
- t.string "name"
55
- t.string "type"
56
- t.string "cached_language_list"
57
- t.string "cached_status_list"
58
- t.string "cached_glass_list"
59
- end
60
-
61
- create_table "other_taggable_models", force: :cascade do |t|
62
- t.string "name"
63
- t.string "type"
64
- end
65
-
66
- create_table "taggable_model_with_jsons", force: :cascade do |t|
67
- t.string "name"
68
- t.string "type"
69
- t.json "opts"
70
- end
71
-
72
- create_table "taggable_models", force: :cascade do |t|
73
- t.string "name"
74
- t.string "type"
75
- end
76
-
77
- create_table "taggings", force: :cascade do |t|
78
- t.integer "tag_id"
79
- t.string "taggable_type"
80
- t.integer "taggable_id"
81
- t.string "tagger_type"
82
- t.integer "tagger_id"
83
- t.string "context", limit: 128
84
- t.datetime "created_at", null: false
85
- t.datetime "updated_at", null: false
86
- t.index ["context"], name: "index_taggings_on_context"
87
- t.index ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true
88
- t.index ["tag_id"], name: "index_taggings_on_tag_id"
89
- t.index ["taggable_id", "taggable_type", "context"], name: "taggings_taggable_context_idx"
90
- t.index ["taggable_id", "taggable_type", "tagger_id", "context"], name: "taggings_idy"
91
- t.index ["taggable_id"], name: "index_taggings_on_taggable_id"
92
- t.index ["taggable_type", "taggable_id"], name: "index_taggings_on_taggable_type_and_taggable_id"
93
- t.index ["taggable_type"], name: "index_taggings_on_taggable_type"
94
- t.index ["tagger_id", "tagger_type"], name: "index_taggings_on_tagger_id_and_tagger_type"
95
- t.index ["tagger_id"], name: "index_taggings_on_tagger_id"
96
- t.index ["tagger_type", "tagger_id"], name: "index_taggings_on_tagger_type_and_tagger_id"
97
- end
98
-
99
- create_table "tags", force: :cascade do |t|
100
- t.string "name"
101
- t.integer "taggings_count", default: 0
102
- t.datetime "created_at", null: false
103
- t.datetime "updated_at", null: false
104
- t.index ["name"], name: "index_tags_on_name", unique: true
105
- end
106
-
107
- create_table "untaggable_models", force: :cascade do |t|
108
- t.integer "taggable_model_id"
109
- t.string "name"
110
- end
111
-
112
- create_table "users", force: :cascade do |t|
113
- t.string "name"
114
- end
115
-
116
- add_foreign_key "taggings", "tags"
117
- end