phcscriptcdn 27.0.0 → 28.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -5
- data/lib/phcscriptcdn/engine.rb +1 -1
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +5 -97
- data/config/initializers/friendly_id.rb +0 -92
- data/config/initializers/locale.rb +0 -10
- data/config/initializers/paper_trail.rb +0 -1
- data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +0 -20
- data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +0 -35
- data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +0 -18
- data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +0 -24
- data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +0 -23
- data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +0 -27
- data/db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb +0 -18
- data/db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb +0 -17
- data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +0 -16
- data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +0 -16
- data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +0 -16
- data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +0 -16
- data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f019add0c1d9517f2a404483b807ce8676235bc0753d6411becf7d447b33e0d0
|
4
|
+
data.tar.gz: cd3872b6b3a0febe584ca27739592d724d29f302e19885f3b069a4ac57b9d989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c2cda055c508ad9e81f6cff75ae134c1063148f3e93f09dcfe929f2d926e84d868fdab185655da761dd8a03fe0f6a21ed1c79120af1e096ce4feb94a76467c
|
7
|
+
data.tar.gz: 9537aefce955d4894f876fc40e358378d0fe4a320aaa1fd322fdc6b30712eb497f58cd68c854a082a2fa24f35f1b4e36bd202822239f2d48dcf95d95ab147315
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ PHCScriptCDN Rails script management engine for website script CDN listings.
|
|
12
12
|
|
13
13
|
#### Step 1 - Add PHCScriptCDN to your gemfile and run command
|
14
14
|
|
15
|
-
gem 'phcscriptcdn', '~>
|
15
|
+
gem 'phcscriptcdn', '~> 28.0'
|
16
16
|
bundle install
|
17
17
|
|
18
18
|
#### Step 2 - Copy PHCScriptCDN Database Tables
|
data/Rakefile
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
begin
|
2
2
|
require 'bundler/setup'
|
3
|
-
|
4
3
|
rescue LoadError
|
5
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
5
|
end
|
7
6
|
|
8
7
|
require 'rdoc/task'
|
9
|
-
|
10
8
|
RDoc::Task.new(:rdoc) do |rdoc|
|
11
9
|
rdoc.rdoc_dir = 'rdoc'
|
12
10
|
rdoc.title = 'Phcscriptcdn'
|
@@ -15,9 +13,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
15
13
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
16
14
|
end
|
17
15
|
|
18
|
-
APP_RAKEFILE = File.expand_path("
|
19
|
-
|
16
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
20
17
|
load 'rails/tasks/engine.rake'
|
21
18
|
load 'rails/tasks/statistics.rake'
|
22
|
-
|
23
19
|
require 'bundler/gem_tasks'
|
data/lib/phcscriptcdn/engine.rb
CHANGED
data/lib/phcscriptcdn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 28.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -311,95 +311,19 @@ dependencies:
|
|
311
311
|
- !ruby/object:Gem::Version
|
312
312
|
version: 0.21.0
|
313
313
|
- !ruby/object:Gem::Dependency
|
314
|
-
name:
|
314
|
+
name: phcaccounts
|
315
315
|
requirement: !ruby/object:Gem::Requirement
|
316
316
|
requirements:
|
317
317
|
- - "~>"
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version: '
|
320
|
-
- - ">="
|
321
|
-
- !ruby/object:Gem::Version
|
322
|
-
version: 4.4.3
|
323
|
-
type: :runtime
|
324
|
-
prerelease: false
|
325
|
-
version_requirements: !ruby/object:Gem::Requirement
|
326
|
-
requirements:
|
327
|
-
- - "~>"
|
328
|
-
- !ruby/object:Gem::Version
|
329
|
-
version: '4.4'
|
330
|
-
- - ">="
|
331
|
-
- !ruby/object:Gem::Version
|
332
|
-
version: 4.4.3
|
333
|
-
- !ruby/object:Gem::Dependency
|
334
|
-
name: simple_token_authentication
|
335
|
-
requirement: !ruby/object:Gem::Requirement
|
336
|
-
requirements:
|
337
|
-
- - "~>"
|
338
|
-
- !ruby/object:Gem::Version
|
339
|
-
version: '1.15'
|
340
|
-
type: :runtime
|
341
|
-
prerelease: false
|
342
|
-
version_requirements: !ruby/object:Gem::Requirement
|
343
|
-
requirements:
|
344
|
-
- - "~>"
|
345
|
-
- !ruby/object:Gem::Version
|
346
|
-
version: '1.15'
|
347
|
-
- !ruby/object:Gem::Dependency
|
348
|
-
name: omniauth-facebook
|
349
|
-
requirement: !ruby/object:Gem::Requirement
|
350
|
-
requirements:
|
351
|
-
- - "~>"
|
352
|
-
- !ruby/object:Gem::Version
|
353
|
-
version: '5.0'
|
354
|
-
type: :runtime
|
355
|
-
prerelease: false
|
356
|
-
version_requirements: !ruby/object:Gem::Requirement
|
357
|
-
requirements:
|
358
|
-
- - "~>"
|
359
|
-
- !ruby/object:Gem::Version
|
360
|
-
version: '5.0'
|
361
|
-
- !ruby/object:Gem::Dependency
|
362
|
-
name: omniauth-github
|
363
|
-
requirement: !ruby/object:Gem::Requirement
|
364
|
-
requirements:
|
365
|
-
- - "~>"
|
366
|
-
- !ruby/object:Gem::Version
|
367
|
-
version: '1.3'
|
368
|
-
type: :runtime
|
369
|
-
prerelease: false
|
370
|
-
version_requirements: !ruby/object:Gem::Requirement
|
371
|
-
requirements:
|
372
|
-
- - "~>"
|
373
|
-
- !ruby/object:Gem::Version
|
374
|
-
version: '1.3'
|
375
|
-
- !ruby/object:Gem::Dependency
|
376
|
-
name: omniauth-instagram
|
377
|
-
requirement: !ruby/object:Gem::Requirement
|
378
|
-
requirements:
|
379
|
-
- - "~>"
|
380
|
-
- !ruby/object:Gem::Version
|
381
|
-
version: '1.3'
|
382
|
-
type: :runtime
|
383
|
-
prerelease: false
|
384
|
-
version_requirements: !ruby/object:Gem::Requirement
|
385
|
-
requirements:
|
386
|
-
- - "~>"
|
387
|
-
- !ruby/object:Gem::Version
|
388
|
-
version: '1.3'
|
389
|
-
- !ruby/object:Gem::Dependency
|
390
|
-
name: omniauth-twitter
|
391
|
-
requirement: !ruby/object:Gem::Requirement
|
392
|
-
requirements:
|
393
|
-
- - "~>"
|
394
|
-
- !ruby/object:Gem::Version
|
395
|
-
version: '1.4'
|
319
|
+
version: '6.0'
|
396
320
|
type: :runtime
|
397
321
|
prerelease: false
|
398
322
|
version_requirements: !ruby/object:Gem::Requirement
|
399
323
|
requirements:
|
400
324
|
- - "~>"
|
401
325
|
- !ruby/object:Gem::Version
|
402
|
-
version: '
|
326
|
+
version: '6.0'
|
403
327
|
- !ruby/object:Gem::Dependency
|
404
328
|
name: rspec-rails
|
405
329
|
requirement: !ruby/object:Gem::Requirement
|
@@ -676,23 +600,7 @@ files:
|
|
676
600
|
- app/views/phcscriptcdn/script/versions/index.html.erb
|
677
601
|
- app/views/phcscriptcdn/script/versions/new.html.erb
|
678
602
|
- app/views/phcscriptcdn/script/versions/show.html.erb
|
679
|
-
- config/initializers/friendly_id.rb
|
680
|
-
- config/initializers/locale.rb
|
681
|
-
- config/initializers/paper_trail.rb
|
682
603
|
- config/routes.rb
|
683
|
-
- db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb
|
684
|
-
- db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb
|
685
|
-
- db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb
|
686
|
-
- db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb
|
687
|
-
- db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb
|
688
|
-
- db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb
|
689
|
-
- db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb
|
690
|
-
- db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb
|
691
|
-
- db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb
|
692
|
-
- db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb
|
693
|
-
- db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb
|
694
|
-
- db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb
|
695
|
-
- db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb
|
696
604
|
- lib/phcscriptcdn.rb
|
697
605
|
- lib/phcscriptcdn/engine.rb
|
698
606
|
- lib/phcscriptcdn/version.rb
|
@@ -1,92 +0,0 @@
|
|
1
|
-
# FriendlyId Global Configuration
|
2
|
-
#
|
3
|
-
# Use this to set up shared configuration options for your entire application.
|
4
|
-
# Any of the configuration options shown here can also be applied to single
|
5
|
-
# models by passing arguments to the `friendly_id` class method or defining
|
6
|
-
# methods in your model.
|
7
|
-
#
|
8
|
-
# To learn more, check out the guide:
|
9
|
-
#
|
10
|
-
# http://norman.github.io/friendly_id/file.Guide.html
|
11
|
-
|
12
|
-
FriendlyId.defaults do |config|
|
13
|
-
# ## Reserved Words
|
14
|
-
#
|
15
|
-
# Some words could conflict with Rails's routes when used as slugs, or are
|
16
|
-
# undesirable to allow as slugs. Edit this list as needed for your app.
|
17
|
-
config.use :reserved
|
18
|
-
|
19
|
-
config.reserved_words = %w(new edit index session login logout users admin
|
20
|
-
stylesheets assets javascripts images)
|
21
|
-
|
22
|
-
# ## Friendly Finders
|
23
|
-
#
|
24
|
-
# Uncomment this to use friendly finders in all models. By default, if
|
25
|
-
# you wish to find a record by its friendly id, you must do:
|
26
|
-
#
|
27
|
-
# MyModel.friendly.find('foo')
|
28
|
-
#
|
29
|
-
# If you uncomment this, you can do:
|
30
|
-
#
|
31
|
-
# MyModel.find('foo')
|
32
|
-
#
|
33
|
-
# This is significantly more convenient but may not be appropriate for
|
34
|
-
# all applications, so you must explicity opt-in to this behavior. You can
|
35
|
-
# always also configure it on a per-model basis if you prefer.
|
36
|
-
#
|
37
|
-
# Something else to consider is that using the :finders addon boosts
|
38
|
-
# performance because it will avoid Rails-internal code that makes runtime
|
39
|
-
# calls to `Module.extend`.
|
40
|
-
#
|
41
|
-
config.use :finders
|
42
|
-
#
|
43
|
-
# ## Slugs
|
44
|
-
#
|
45
|
-
# Most applications will use the :slugged module everywhere. If you wish
|
46
|
-
# to do so, uncomment the following line.
|
47
|
-
#
|
48
|
-
config.use :slugged
|
49
|
-
#
|
50
|
-
# By default, FriendlyId's :slugged addon expects the slug column to be named
|
51
|
-
# 'slug', but you can change it if you wish.
|
52
|
-
#
|
53
|
-
# config.slug_column = 'slug'
|
54
|
-
#
|
55
|
-
# When FriendlyId can not generate a unique ID from your base method, it appends
|
56
|
-
# a UUID, separated by a single dash. You can configure the character used as the
|
57
|
-
# separator. If you're upgrading from FriendlyId 4, you may wish to replace this
|
58
|
-
# with two dashes.
|
59
|
-
#
|
60
|
-
# config.sequence_separator = '-'
|
61
|
-
#
|
62
|
-
# Note that you must use the :slugged addon **prior** to the line which
|
63
|
-
# configures the sequence separator, or else FriendlyId will raise an undefined
|
64
|
-
# method error.
|
65
|
-
#
|
66
|
-
# ## Tips and Tricks
|
67
|
-
#
|
68
|
-
# ### Controlling when slugs are generated
|
69
|
-
#
|
70
|
-
# As of FriendlyId 5.0, new slugs are generated only when the slug field is
|
71
|
-
# nil, but if you're using a column as your base method can change this
|
72
|
-
# behavior by overriding the `should_generate_new_friendly_id?` method that
|
73
|
-
# FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
|
74
|
-
# more like 4.0.
|
75
|
-
#
|
76
|
-
# config.use Module.new {
|
77
|
-
# def should_generate_new_friendly_id?
|
78
|
-
# slug.blank? || <your_column_name_here>_changed?
|
79
|
-
# end
|
80
|
-
# }
|
81
|
-
#
|
82
|
-
# FriendlyId uses Rails's `parameterize` method to generate slugs, but for
|
83
|
-
# languages that don't use the Roman alphabet, that's not usually sufficient.
|
84
|
-
# Here we use the Babosa library to transliterate Russian Cyrillic slugs to
|
85
|
-
# ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
|
86
|
-
#
|
87
|
-
# config.use Module.new {
|
88
|
-
# def normalize_friendly_id(text)
|
89
|
-
# text.to_slug.normalize! :transliterations => [:russian, :latin]
|
90
|
-
# end
|
91
|
-
# }
|
92
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# config/initializers/locale.rb
|
2
|
-
|
3
|
-
# Where the I18n library should search for translation files
|
4
|
-
I18n.load_path += Dir[Rails.root.join('lib', 'locale', '*.{rb,yml}')]
|
5
|
-
|
6
|
-
# Whitelist locales available for the application
|
7
|
-
I18n.available_locales = [:en]
|
8
|
-
|
9
|
-
# Set default locale to something other than :en
|
10
|
-
I18n.default_locale = :en
|
@@ -1 +0,0 @@
|
|
1
|
-
PaperTrail.config.track_associations = false
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_extensions do |t|
|
5
|
-
|
6
|
-
t.string :scriptextensionname
|
7
|
-
t.text :scriptextensiondes
|
8
|
-
t.string :scriptextension
|
9
|
-
|
10
|
-
t.string :slug
|
11
|
-
|
12
|
-
t.string :user_id
|
13
|
-
t.string :user_name
|
14
|
-
|
15
|
-
t.timestamps
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_listings do |t|
|
5
|
-
|
6
|
-
t.string :scripttitle
|
7
|
-
t.text :scriptdescription
|
8
|
-
t.string :descriptionsource
|
9
|
-
|
10
|
-
t.string :scriptwebsite
|
11
|
-
t.string :scripttwitter
|
12
|
-
t.string :scriptgithub
|
13
|
-
|
14
|
-
t.date :scriptinitialrelease
|
15
|
-
t.date :scriptlastestrelease
|
16
|
-
t.date :scriptbetarelease
|
17
|
-
t.date :scriptlastestreleasecdn
|
18
|
-
|
19
|
-
t.string :scriptstatus
|
20
|
-
|
21
|
-
t.references :version
|
22
|
-
t.references :licence
|
23
|
-
t.references :author
|
24
|
-
|
25
|
-
t.string :slug
|
26
|
-
|
27
|
-
t.string :user_id
|
28
|
-
t.string :user_name
|
29
|
-
|
30
|
-
t.timestamps
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptVersions < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_versions do |t|
|
5
|
-
|
6
|
-
t.string :scriptversion
|
7
|
-
|
8
|
-
t.string :slug
|
9
|
-
|
10
|
-
t.string :user_id
|
11
|
-
t.string :user_name
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptUrls < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_urls do |t|
|
5
|
-
|
6
|
-
t.string :scripturl
|
7
|
-
t.date :scripturlrelease
|
8
|
-
t.date :scripturlcdnupdate
|
9
|
-
|
10
|
-
t.references :listing
|
11
|
-
t.references :version
|
12
|
-
t.references :extension
|
13
|
-
|
14
|
-
t.string :slug
|
15
|
-
|
16
|
-
t.string :user_id
|
17
|
-
t.string :user_name
|
18
|
-
|
19
|
-
t.timestamps
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_authors do |t|
|
5
|
-
|
6
|
-
t.string :authorfirstname
|
7
|
-
t.string :authorlastname
|
8
|
-
|
9
|
-
t.string :authorwebsite
|
10
|
-
t.string :authorgithub
|
11
|
-
t.string :authortwitter
|
12
|
-
|
13
|
-
t.string :slug
|
14
|
-
|
15
|
-
t.string :user_id
|
16
|
-
t.string :user_name
|
17
|
-
|
18
|
-
t.timestamps
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_licences do |t|
|
5
|
-
|
6
|
-
t.string :lcncname
|
7
|
-
t.string :lcncdescript
|
8
|
-
t.text :lcncdescription
|
9
|
-
|
10
|
-
t.string :lcnccomgpl
|
11
|
-
t.string :lcncarvlfsf
|
12
|
-
t.string :lcncarvlosi
|
13
|
-
t.string :lcncarvlcopyfree
|
14
|
-
t.string :lcncarvldebian
|
15
|
-
t.string :lcncarvlfedora
|
16
|
-
|
17
|
-
t.string :slug
|
18
|
-
|
19
|
-
t.string :user_id
|
20
|
-
t.string :user_name
|
21
|
-
|
22
|
-
t.timestamps
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnFriendlyIdSlugs < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_friendly_id_slugs do |t|
|
5
|
-
t.string :slug, :null => false
|
6
|
-
t.integer :sluggable_id, :null => false
|
7
|
-
t.string :sluggable_type, :limit => 50
|
8
|
-
t.string :scope
|
9
|
-
t.datetime :created_at
|
10
|
-
end
|
11
|
-
|
12
|
-
add_index :phcscriptcdn_friendly_id_slugs, :sluggable_id
|
13
|
-
add_index :phcscriptcdn_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdn_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
|
14
|
-
add_index :phcscriptcdn_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'scriptcdn_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
15
|
-
add_index :phcscriptcdn_friendly_id_slugs, :sluggable_type
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnExtensionVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcscriptcdn_extension_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
|
14
|
-
add_index :phcscriptcdn_extension_versions, %i(item_type item_id), :name => 'scriptcdn_ext_versions'
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnListingVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcscriptcdn_listing_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcscriptcdn_listing_versions, %i(item_type item_id), :name => 'scriptcdn_listing_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptversionVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcscriptcdn_scriptversion_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcscriptcdn_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdn_scriptversion_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnUrlVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcscriptcdn_url_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcscriptcdn_url_versions, %i(item_type item_id), :name => 'scriptcdn_url_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnAuthorVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcscriptcdn_author_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcscriptcdn_author_versions, %i(item_type item_id), :name => 'scriptcdn_author_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcscriptcdnLicenceVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcscriptcdn_licence_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcscriptcdn_licence_versions, %i(item_type item_id), :name => 'scriptcdn_licence_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|