phcdevworks_scripts 8.1.1 → 8.2.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 +20 -20
- data/README.md +1 -28
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_scripts_manifest.js +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/application.scss +15 -15
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/versions.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +3 -3
- data/app/controllers/phcdevworks_scripts/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +78 -78
- data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +82 -82
- data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +77 -77
- data/app/helpers/phcdevworks_scripts/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/authors_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/extensions_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/listings_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/urls_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/versions_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/snippet/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/snippet/urls_helper.rb +4 -4
- data/app/jobs/phcdevworks_scripts/application_job.rb +4 -4
- data/app/mailers/phcdevworks_scripts/application_mailer.rb +6 -6
- data/app/models/phcdevworks_scripts/application_record.rb +5 -5
- data/app/models/phcdevworks_scripts/script/author.rb +33 -33
- data/app/models/phcdevworks_scripts/script/extension.rb +32 -32
- data/app/models/phcdevworks_scripts/script/listing.rb +38 -38
- data/app/models/phcdevworks_scripts/script/url.rb +24 -24
- data/app/models/phcdevworks_scripts/script/version.rb +26 -26
- data/app/models/phcdevworks_scripts/script.rb +7 -7
- data/app/models/phcdevworks_scripts/script_author_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_extension_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_listing_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_url_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_version_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet/post.rb +28 -28
- data/app/models/phcdevworks_scripts/snippet/url.rb +19 -19
- data/app/models/phcdevworks_scripts/snippet.rb +7 -7
- data/app/models/phcdevworks_scripts/snippet_post_versions.rb +5 -5
- data/app/models/phcdevworks_scripts/snippet_url_versions.rb +5 -5
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +131 -131
- data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +0 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +0 -0
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +37 -37
- data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +78 -78
- data/app/views/phcdevworks_scripts/script/authors/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/authors/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +32 -32
- data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +73 -73
- data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/extensions/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +73 -73
- data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +47 -47
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +76 -76
- data/app/views/phcdevworks_scripts/script/listings/new.html.erb +47 -47
- data/app/views/phcdevworks_scripts/script/listings/show.html.erb +48 -48
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +42 -42
- data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +60 -60
- data/app/views/phcdevworks_scripts/script/urls/index.html.erb +76 -76
- data/app/views/phcdevworks_scripts/script/urls/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/urls/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +22 -22
- data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/versions/index.html.erb +72 -72
- data/app/views/phcdevworks_scripts/script/versions/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/versions/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +28 -28
- data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +82 -82
- data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +71 -71
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +22 -22
- data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +80 -80
- data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/urls/show.html.erb +71 -71
- data/config/routes.rb +33 -33
- data/config/spring.rb +1 -1
- data/db/migrate/20170517064030_create_phcdevworks_scripts_script_extension_versions.rb +0 -0
- data/db/migrate/20170517064049_create_phcdevworks_scripts_script_listing_versions.rb +18 -18
- data/db/migrate/20170517064114_create_phcdevworks_scripts_script_version_versions.rb +18 -18
- data/db/migrate/20170517064150_create_phcdevworks_scripts_script_url_versions.rb +0 -0
- data/db/migrate/20170517064208_create_phcdevworks_scripts_script_author_versions.rb +18 -18
- data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +18 -18
- data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +17 -17
- data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +18 -18
- data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +29 -29
- data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +17 -17
- data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +21 -21
- data/db/migrate/20190818031653_create_phcdevworks_scripts_script_versions.rb +15 -15
- data/db/migrate/20191102092649_create_phcdevworks_scripts_snippet_url_versions.rb +18 -18
- data/db/migrate/20191102092711_create_phcdevworks_scripts_snippet_post_versions.rb +18 -18
- data/lib/phcdevworks_scripts/engine.rb +47 -47
- data/lib/phcdevworks_scripts/version.rb +3 -3
- data/lib/phcdevworks_scripts.rb +6 -6
- data/lib/tasks/phcdevworks_scripts_tasks.rake +4 -4
- metadata +33 -33
@@ -1,71 +1,71 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Code Snippet Manager" %>
|
3
|
-
<% phc_title_tagline "Asset URL Details" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb pull-right">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
20
|
-
<div class="row">
|
21
|
-
|
22
|
-
<!-- Button Area -->
|
23
|
-
<div class="col-lg-4">
|
24
|
-
<!-- Button Panel -->
|
25
|
-
<div class="panel panel-inverse">
|
26
|
-
<!-- Panel Heading -->
|
27
|
-
<div class="panel-heading">
|
28
|
-
<h4 class="panel-title">Options Panel</h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel Heading -->
|
31
|
-
<!-- Panel Body -->
|
32
|
-
<div class="panel-body">
|
33
|
-
<div class="btn-group d-flex" role="group">
|
34
|
-
<%= link_to 'Update', phcdevworks_scripts.edit_snippet_post_url_path, class: "btn btn-primary" %>
|
35
|
-
<%= link_to 'Remove', phcdevworks_scripts.snippet_post_urls_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
<!-- Panel Body -->
|
39
|
-
</div>
|
40
|
-
<!-- Button Panel -->
|
41
|
-
</div>
|
42
|
-
<!-- Button Area -->
|
43
|
-
|
44
|
-
<!-- Main Area -->
|
45
|
-
<div class="col-lg-8">
|
46
|
-
<!-- Main Panel -->
|
47
|
-
<div class="panel panel-inverse">
|
48
|
-
<!-- Panel Heading -->
|
49
|
-
<div class="panel-heading">
|
50
|
-
<div class="panel-heading-btn">
|
51
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
52
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
53
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
54
|
-
</div>
|
55
|
-
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
56
|
-
</div>
|
57
|
-
<!-- Panel Heading -->
|
58
|
-
<!-- Panel Body -->
|
59
|
-
<div class="panel-body">
|
60
|
-
<p class="h3">Script Snippet URL</p>
|
61
|
-
<hr>
|
62
|
-
<pre><code><%= @snippet_url.snippet_url %></code></pre>
|
63
|
-
</div>
|
64
|
-
<!-- Panel Body -->
|
65
|
-
</div>
|
66
|
-
<!-- Main Panel -->
|
67
|
-
</div>
|
68
|
-
<!-- Main Area -->
|
69
|
-
|
70
|
-
</div>
|
71
|
-
<!-- Page Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Code Snippet Manager" %>
|
3
|
+
<% phc_title_tagline "Asset URL Details" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
|
22
|
+
<!-- Button Area -->
|
23
|
+
<div class="col-lg-4">
|
24
|
+
<!-- Button Panel -->
|
25
|
+
<div class="panel panel-inverse">
|
26
|
+
<!-- Panel Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title">Options Panel</h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel Heading -->
|
31
|
+
<!-- Panel Body -->
|
32
|
+
<div class="panel-body">
|
33
|
+
<div class="btn-group d-flex" role="group">
|
34
|
+
<%= link_to 'Update', phcdevworks_scripts.edit_snippet_post_url_path, class: "btn btn-primary" %>
|
35
|
+
<%= link_to 'Remove', phcdevworks_scripts.snippet_post_urls_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<!-- Panel Body -->
|
39
|
+
</div>
|
40
|
+
<!-- Button Panel -->
|
41
|
+
</div>
|
42
|
+
<!-- Button Area -->
|
43
|
+
|
44
|
+
<!-- Main Area -->
|
45
|
+
<div class="col-lg-8">
|
46
|
+
<!-- Main Panel -->
|
47
|
+
<div class="panel panel-inverse">
|
48
|
+
<!-- Panel Heading -->
|
49
|
+
<div class="panel-heading">
|
50
|
+
<div class="panel-heading-btn">
|
51
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
52
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
53
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
54
|
+
</div>
|
55
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
56
|
+
</div>
|
57
|
+
<!-- Panel Heading -->
|
58
|
+
<!-- Panel Body -->
|
59
|
+
<div class="panel-body">
|
60
|
+
<p class="h3">Script Snippet URL</p>
|
61
|
+
<hr>
|
62
|
+
<pre><code><%= @snippet_url.snippet_url %></code></pre>
|
63
|
+
</div>
|
64
|
+
<!-- Panel Body -->
|
65
|
+
</div>
|
66
|
+
<!-- Main Panel -->
|
67
|
+
</div>
|
68
|
+
<!-- Main Area -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
<!-- Page Content -->
|
data/config/routes.rb
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
PhcdevworksScripts::Engine.routes.draw do
|
2
|
-
|
3
|
-
# API Routes
|
4
|
-
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
5
|
-
namespace :v1 do
|
6
|
-
resources :mains, defaults: {format: "json"}
|
7
|
-
resources :informations, defaults: {format: "json"}
|
8
|
-
resources :versions, defaults: {format: "json"}
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
# Script CDN Routes
|
13
|
-
namespace :script do
|
14
|
-
resources :listings, class_name: "PhcdevworksScripts::Script::Listing" do
|
15
|
-
resources :urls, class_name: "PhcdevworksScripts::Script::Url"
|
16
|
-
end
|
17
|
-
resources :authors, class_name: "PhcdevworksScripts::Script::Author"
|
18
|
-
resources :extensions, class_name: "PhcdevworksScripts::Script::Extension"
|
19
|
-
resources :versions, class_name: "PhcdevworksScripts::Script::Version"
|
20
|
-
end
|
21
|
-
|
22
|
-
# Script Snippet Routes
|
23
|
-
namespace :snippet do
|
24
|
-
resources :posts, class_name: "PhcdevworksScripts::Snippet::Post" do
|
25
|
-
resources :urls, class_name: "PhcdevworksScripts::Snippet::Url"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# Mount Routes
|
30
|
-
mount PhcdevworksAccounts::Engine, :at => '/'
|
31
|
-
mount PhcdevworksCoreModules::Engine, :at => '/'
|
32
|
-
|
33
|
-
end
|
1
|
+
PhcdevworksScripts::Engine.routes.draw do
|
2
|
+
|
3
|
+
# API Routes
|
4
|
+
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
5
|
+
namespace :v1 do
|
6
|
+
resources :mains, defaults: {format: "json"}
|
7
|
+
resources :informations, defaults: {format: "json"}
|
8
|
+
resources :versions, defaults: {format: "json"}
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# Script CDN Routes
|
13
|
+
namespace :script do
|
14
|
+
resources :listings, class_name: "PhcdevworksScripts::Script::Listing" do
|
15
|
+
resources :urls, class_name: "PhcdevworksScripts::Script::Url"
|
16
|
+
end
|
17
|
+
resources :authors, class_name: "PhcdevworksScripts::Script::Author"
|
18
|
+
resources :extensions, class_name: "PhcdevworksScripts::Script::Extension"
|
19
|
+
resources :versions, class_name: "PhcdevworksScripts::Script::Version"
|
20
|
+
end
|
21
|
+
|
22
|
+
# Script Snippet Routes
|
23
|
+
namespace :snippet do
|
24
|
+
resources :posts, class_name: "PhcdevworksScripts::Snippet::Post" do
|
25
|
+
resources :urls, class_name: "PhcdevworksScripts::Snippet::Url"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Mount Routes
|
30
|
+
mount PhcdevworksAccounts::Engine, :at => '/'
|
31
|
+
mount PhcdevworksCoreModules::Engine, :at => '/'
|
32
|
+
|
33
|
+
end
|
data/config/spring.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
Spring.application_root = './spec/test_app'
|
1
|
+
Spring.application_root = './spec/test_app'
|
2
2
|
|
File without changes
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptListingVersions < ActiveRecord::Migration[6.0]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
create_table :phcdevworks_scripts_script_listing_versions do |t|
|
5
|
-
|
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
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :phcdevworks_scripts_script_listing_versions, %i(item_type item_id), :name => 'script_listing_versions'
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptListingVersions < ActiveRecord::Migration[6.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
create_table :phcdevworks_scripts_script_listing_versions do |t|
|
5
|
+
|
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
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :phcdevworks_scripts_script_listing_versions, %i(item_type item_id), :name => 'script_listing_versions'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptVersionVersions < ActiveRecord::Migration[6.0]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
create_table :phcdevworks_scripts_script_version_versions do |t|
|
5
|
-
|
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
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :phcdevworks_scripts_script_version_versions, %i(item_type item_id), :name => 'script_version_versions'
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptVersionVersions < ActiveRecord::Migration[6.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
create_table :phcdevworks_scripts_script_version_versions do |t|
|
5
|
+
|
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
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :phcdevworks_scripts_script_version_versions, %i(item_type item_id), :name => 'script_version_versions'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
File without changes
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptAuthorVersions < ActiveRecord::Migration[6.0]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
create_table :phcdevworks_scripts_script_author_versions do |t|
|
5
|
-
|
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
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :phcdevworks_scripts_script_author_versions, %i(item_type item_id), :name => 'script_author_versions'
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptAuthorVersions < ActiveRecord::Migration[6.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
create_table :phcdevworks_scripts_script_author_versions do |t|
|
5
|
+
|
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
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :phcdevworks_scripts_script_author_versions, %i(item_type item_id), :name => 'script_author_versions'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksScriptsSnippetPosts < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_snippet_posts do |t|
|
4
|
-
|
5
|
-
t.string :snippet_post_title
|
6
|
-
t.text :snippet_post_code
|
7
|
-
|
8
|
-
t.string :optimization_id
|
9
|
-
|
10
|
-
t.string :slug
|
11
|
-
t.string :user_id
|
12
|
-
t.string :org_id
|
13
|
-
|
14
|
-
t.timestamps
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsSnippetPosts < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_snippet_posts do |t|
|
4
|
+
|
5
|
+
t.string :snippet_post_title
|
6
|
+
t.text :snippet_post_code
|
7
|
+
|
8
|
+
t.string :optimization_id
|
9
|
+
|
10
|
+
t.string :slug
|
11
|
+
t.string :user_id
|
12
|
+
t.string :org_id
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
class CreatePhcdevworksScriptsSnippetUrls < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_snippet_urls do |t|
|
4
|
-
|
5
|
-
t.string :snippet_post_url
|
6
|
-
|
7
|
-
t.string :slug
|
8
|
-
t.string :user_id
|
9
|
-
t.string :org_id
|
10
|
-
|
11
|
-
t.references :post
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsSnippetUrls < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_snippet_urls do |t|
|
4
|
+
|
5
|
+
t.string :snippet_post_url
|
6
|
+
|
7
|
+
t.string :slug
|
8
|
+
t.string :user_id
|
9
|
+
t.string :org_id
|
10
|
+
|
11
|
+
t.references :post
|
12
|
+
|
13
|
+
t.timestamps
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptAuthors < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_script_authors do |t|
|
4
|
-
|
5
|
-
t.string :script_author_first_name
|
6
|
-
t.string :script_author_last_name
|
7
|
-
t.string :script_author_website
|
8
|
-
t.string :script_author_github
|
9
|
-
|
10
|
-
t.string :slug
|
11
|
-
t.string :user_id
|
12
|
-
t.string :org_id
|
13
|
-
|
14
|
-
t.timestamps
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptAuthors < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_script_authors do |t|
|
4
|
+
|
5
|
+
t.string :script_author_first_name
|
6
|
+
t.string :script_author_last_name
|
7
|
+
t.string :script_author_website
|
8
|
+
t.string :script_author_github
|
9
|
+
|
10
|
+
t.string :slug
|
11
|
+
t.string :user_id
|
12
|
+
t.string :org_id
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,29 +1,29 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptListings < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_script_listings do |t|
|
4
|
-
|
5
|
-
t.string :script_listing_title
|
6
|
-
t.text :script_listing_description
|
7
|
-
t.string :script_listing_script_source
|
8
|
-
t.string :script_listing_script_website
|
9
|
-
t.string :script_listing_script_repo
|
10
|
-
t.string :script_listing_script_status
|
11
|
-
|
12
|
-
t.date :script_listing_script_initial_release
|
13
|
-
t.date :script_listing_script_lastest_release
|
14
|
-
t.date :script_listing_script_beta_release
|
15
|
-
t.date :script_listing_script_lastest_release_cdn
|
16
|
-
|
17
|
-
t.string :optimization_id
|
18
|
-
|
19
|
-
t.string :slug
|
20
|
-
t.string :user_id
|
21
|
-
t.string :org_id
|
22
|
-
|
23
|
-
t.references :author
|
24
|
-
|
25
|
-
t.timestamps
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptListings < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_script_listings do |t|
|
4
|
+
|
5
|
+
t.string :script_listing_title
|
6
|
+
t.text :script_listing_description
|
7
|
+
t.string :script_listing_script_source
|
8
|
+
t.string :script_listing_script_website
|
9
|
+
t.string :script_listing_script_repo
|
10
|
+
t.string :script_listing_script_status
|
11
|
+
|
12
|
+
t.date :script_listing_script_initial_release
|
13
|
+
t.date :script_listing_script_lastest_release
|
14
|
+
t.date :script_listing_script_beta_release
|
15
|
+
t.date :script_listing_script_lastest_release_cdn
|
16
|
+
|
17
|
+
t.string :optimization_id
|
18
|
+
|
19
|
+
t.string :slug
|
20
|
+
t.string :user_id
|
21
|
+
t.string :org_id
|
22
|
+
|
23
|
+
t.references :author
|
24
|
+
|
25
|
+
t.timestamps
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptExtensions < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_script_extensions do |t|
|
4
|
-
|
5
|
-
t.string :script_extension_name
|
6
|
-
t.text :script_extension_description
|
7
|
-
t.string :script_extension
|
8
|
-
|
9
|
-
t.string :slug
|
10
|
-
t.string :user_id
|
11
|
-
t.string :org_id
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptExtensions < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_script_extensions do |t|
|
4
|
+
|
5
|
+
t.string :script_extension_name
|
6
|
+
t.text :script_extension_description
|
7
|
+
t.string :script_extension
|
8
|
+
|
9
|
+
t.string :slug
|
10
|
+
t.string :user_id
|
11
|
+
t.string :org_id
|
12
|
+
|
13
|
+
t.timestamps
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,21 +1,21 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptUrls < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_script_urls do |t|
|
4
|
-
|
5
|
-
t.string :script_cdn_url
|
6
|
-
t.date :script_cdn_url_release
|
7
|
-
t.date :script_cdn_url_cdn_update
|
8
|
-
|
9
|
-
t.string :slug
|
10
|
-
t.string :user_id
|
11
|
-
t.string :org_id
|
12
|
-
|
13
|
-
t.references :listing
|
14
|
-
t.references :extension
|
15
|
-
t.references :version
|
16
|
-
|
17
|
-
t.timestamps
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptUrls < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_script_urls do |t|
|
4
|
+
|
5
|
+
t.string :script_cdn_url
|
6
|
+
t.date :script_cdn_url_release
|
7
|
+
t.date :script_cdn_url_cdn_update
|
8
|
+
|
9
|
+
t.string :slug
|
10
|
+
t.string :user_id
|
11
|
+
t.string :org_id
|
12
|
+
|
13
|
+
t.references :listing
|
14
|
+
t.references :extension
|
15
|
+
t.references :version
|
16
|
+
|
17
|
+
t.timestamps
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,15 +1,15 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptVersions < ActiveRecord::Migration[6.0]
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_scripts_script_versions do |t|
|
4
|
-
|
5
|
-
t.string :script_version_number
|
6
|
-
|
7
|
-
t.string :slug
|
8
|
-
t.string :user_id
|
9
|
-
t.string :org_id
|
10
|
-
|
11
|
-
t.timestamps
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsScriptVersions < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_scripts_script_versions do |t|
|
4
|
+
|
5
|
+
t.string :script_version_number
|
6
|
+
|
7
|
+
t.string :slug
|
8
|
+
t.string :user_id
|
9
|
+
t.string :org_id
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksScriptsSnippetUrlVersions < ActiveRecord::Migration[6.0]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
create_table :phcdevworks_scripts_snippet_url_versions do |t|
|
5
|
-
|
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
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :phcdevworks_scripts_snippet_url_versions, %i(item_type item_id), :name => 'snippet_url_versions'
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksScriptsSnippetUrlVersions < ActiveRecord::Migration[6.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
create_table :phcdevworks_scripts_snippet_url_versions do |t|
|
5
|
+
|
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
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :phcdevworks_scripts_snippet_url_versions, %i(item_type item_id), :name => 'snippet_url_versions'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|