browsercms 4.0.0.beta → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cms/application_controller.rb +6 -0
- data/app/controllers/cms/form_entries_controller.rb +26 -5
- data/app/helpers/cms/application_helper.rb +6 -7
- data/app/models/cms/form_entry.rb +4 -0
- data/app/views/cms/application/_pagination.html.erb +1 -1
- data/app/views/cms/content_block/index.html.erb +2 -2
- data/app/views/cms/form_entries/index.html.erb +1 -0
- data/config/routes.rb +1 -1
- data/doc/release_notes.md +1 -0
- data/lib/cms/version.rb +1 -1
- metadata +31 -32
- data/db/schema.rb +0 -493
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eae4591c280dc4b52a0684869dc2ff63cdabd909
|
4
|
+
data.tar.gz: c47290b6faa8027ecc7d8c46a669ecb4fab0b45d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 032185a55b1ebede050872835bfaf86454fcd4b07209cef0b8418f74463d7175f83558cc7a9c9bc9c30e16a79ca39a1600b8a7bdca0491cab7cc8fba2b95d5e6
|
7
|
+
data.tar.gz: ae0cf73ac402facedab7f3f2bb53c1d39c7947200b7976923aa24ff7325f167a65188098437706992c9dfc48546cd4f8f3dea65262439cabe49904a61e72140a
|
@@ -32,16 +32,36 @@ module Cms
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
def bulk_update
|
36
|
+
# Duplicates ContentBlockController#bulk_update
|
37
|
+
ids = params[:content_id] || []
|
38
|
+
models = ids.collect do |id|
|
39
|
+
FormEntry.find(id.to_i)
|
40
|
+
end
|
41
|
+
|
42
|
+
if params[:commit] == 'Delete'
|
43
|
+
deleted = models.select do |m|
|
44
|
+
m.destroy
|
45
|
+
end
|
46
|
+
flash[:notice] = "Deleted #{deleted.size} records."
|
47
|
+
end
|
48
|
+
|
49
|
+
redirect_to entries_path(params[:form_id])
|
50
|
+
end
|
51
|
+
|
35
52
|
# Same behavior as ContentBlockController#index
|
36
53
|
def index
|
37
|
-
form = Cms::Form.where(id: params[:id]).first
|
38
|
-
|
39
|
-
@entry = Cms::FormEntry.for(form)
|
40
|
-
|
54
|
+
@form = Cms::Form.where(id: params[:id]).first
|
55
|
+
|
41
56
|
# Allows us to use the content_block/index view
|
42
|
-
@content_type = FauxContentType.new(form)
|
57
|
+
@content_type = FauxContentType.new(@form)
|
43
58
|
@search_filter = SearchFilter.build(params[:search_filter], Cms::FormEntry)
|
59
|
+
|
60
|
+
@blocks = Cms::FormEntry.where(form_id: params[:id]).search(@search_filter.term).paginate({page: params[:page], order: params[:order]})
|
61
|
+
@entry = Cms::FormEntry.for(@form)
|
62
|
+
|
44
63
|
@total_number_of_items = @blocks.size
|
64
|
+
|
45
65
|
end
|
46
66
|
|
47
67
|
def edit
|
@@ -115,5 +135,6 @@ module Cms
|
|
115
135
|
def content_type
|
116
136
|
@content_type
|
117
137
|
end
|
138
|
+
|
118
139
|
end
|
119
140
|
end
|
@@ -171,18 +171,17 @@ HTML
|
|
171
171
|
if collection.blank?
|
172
172
|
content_tag(:div, "No Content", :class => "pagination")
|
173
173
|
else
|
174
|
-
model_class = content_type.instance_of?(Class) ? content_type : content_type.model_class
|
175
174
|
render :partial => "pagination", :locals => {
|
176
175
|
:collection => collection,
|
177
|
-
:first_page_path =>
|
178
|
-
:previous_page_path =>
|
179
|
-
:current_page_path =>
|
180
|
-
:next_page_path =>
|
181
|
-
:last_page_path =>
|
176
|
+
:first_page_path => engine(content_type).url_for({:page => 1}.merge(options)),
|
177
|
+
:previous_page_path => engine(content_type).url_for({:page => collection.previous_page ? collection.previous_page : 1}.merge(options)),
|
178
|
+
:current_page_path => engine(content_type).url_for(options),
|
179
|
+
:next_page_path => engine(content_type).url_for({:page => collection.next_page ? collection.next_page : collection.current_page}.merge(options)),
|
180
|
+
:last_page_path => engine(content_type).url_for({:page => collection.total_pages}.merge(options))
|
182
181
|
}
|
183
182
|
end
|
184
183
|
end
|
185
|
-
|
184
|
+
|
186
185
|
def url_with_mode(url, mode)
|
187
186
|
url = "" unless url # Handles cases where request.referrer is nil (see cms/_page_toolbar.html.erb for an example)
|
188
187
|
uri = URI.parse(url)
|
@@ -23,6 +23,10 @@ module Cms
|
|
23
23
|
|
24
24
|
class << self
|
25
25
|
|
26
|
+
def search(term)
|
27
|
+
where("data_columns like ?", "%#{term}%")
|
28
|
+
end
|
29
|
+
|
26
30
|
# Create an Entry for a specific Form. It will have validation and accessors based on the fields of the form.
|
27
31
|
#
|
28
32
|
# @param [Cms::Form] form
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= link_to "<< ".html_safe, first_page_path, :id => "first_page_link" %>
|
11
11
|
<%= link_to "< ".html_safe, previous_page_path, :id => "previous_page_link" %>
|
12
12
|
<% url = URI.parse(current_page_path) %>
|
13
|
-
<%= form_tag
|
13
|
+
<%= form_tag engine(content_type).url_for({}), :method => :get, :class => "current_page", style: 'display:inline' do %>
|
14
14
|
<% url.query.to_s.split('&').each do |p|
|
15
15
|
; k, v = p.split('=') %>
|
16
16
|
<%= hidden_field_tag(k, CGI::unescape(v.to_s), :id => "pagination_hidden_#{k}") unless k == "page" %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="padded row-fluid clearfix">
|
3
3
|
<h1 class="span3">Assets</h1>
|
4
4
|
|
5
|
-
<%= form_for @search_filter, url:
|
5
|
+
<%= form_for @search_filter, url: engine(content_type).url_for({}), html: {class: 'form-search'}, method: :get do |f| %>
|
6
6
|
<%= f.text_field :term, class: "span6 search-query right", placeholder: "Search #{content_type.display_name_plural}" %>
|
7
7
|
<% end %>
|
8
8
|
</div>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<% if !@search_filter.term.blank? && @blocks.size == 0 %>
|
82
82
|
<div class="pagination">No results found for '<%= @search_filter.term %>'</div>
|
83
83
|
<% elsif @blocks.total_pages > 1 %>
|
84
|
-
<%= render_pagination @blocks, content_type, :order => params[:order],
|
84
|
+
<%= render_pagination @blocks, content_type, :order => params[:order], "search_filter[term]" => @search_filter.term %>
|
85
85
|
<% end %>
|
86
86
|
|
87
87
|
</div>
|
data/config/routes.rb
CHANGED
@@ -94,7 +94,7 @@ Cms::Engine.routes.draw do
|
|
94
94
|
post :submit
|
95
95
|
end
|
96
96
|
end
|
97
|
-
|
97
|
+
put "/form_entries" => "form_entries#bulk_update"
|
98
98
|
# Faux nested resource for forms (not sure if #content_blocks allows for it.)
|
99
99
|
get 'forms/:id/entries' => 'form_entries#index', as: 'entries'
|
100
100
|
|
data/doc/release_notes.md
CHANGED
@@ -22,6 +22,7 @@ This portlet is provides a configurable means to query for and display content w
|
|
22
22
|
|
23
23
|
Each list portlet can also have its own specific view that overrides the default list or table view. Developers can add a new file in a specific location, based on the name of the portlet. This view will then be used when showing the portlet. The exact path for each portlet is displayed in the sidebar. If using a table view, this will almost always need to be overriden since there is no way to configure which columns to show in the portlet.
|
24
24
|
|
25
|
+
Other bug fixes: https://github.com/browsermedia/browsercms/issues?milestone=22&state=closed
|
25
26
|
|
26
27
|
|
27
28
|
# v4.0.0.alpha
|
data/lib/cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browsercms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BrowserMedia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 3.
|
159
|
+
version: '3.4'
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.
|
166
|
+
version: '3.4'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: panoramic
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,6 +254,11 @@ extra_rdoc_files:
|
|
254
254
|
- GPL.txt
|
255
255
|
- README.markdown
|
256
256
|
files:
|
257
|
+
- .yardopts
|
258
|
+
- COPYRIGHT.txt
|
259
|
+
- GPL.txt
|
260
|
+
- LICENSE.txt
|
261
|
+
- README.markdown
|
257
262
|
- app/assets/fonts/icomoon.dev.svg
|
258
263
|
- app/assets/fonts/icomoon.eot
|
259
264
|
- app/assets/fonts/icomoon.svg
|
@@ -371,6 +376,7 @@ files:
|
|
371
376
|
- app/assets/images/cms/lt_button_bg.gif
|
372
377
|
- app/assets/images/cms/lt_button_l.gif
|
373
378
|
- app/assets/images/cms/lt_button_r.gif
|
379
|
+
- app/assets/images/cms/menu.png
|
374
380
|
- app/assets/images/cms/menu/block_cap_h.gif
|
375
381
|
- app/assets/images/cms/menu/bottom_cap.png
|
376
382
|
- app/assets/images/cms/menu/bottom_cap_menu.png
|
@@ -379,13 +385,12 @@ files:
|
|
379
385
|
- app/assets/images/cms/menu/selected_block_cap.gif
|
380
386
|
- app/assets/images/cms/menu/top_cap.png
|
381
387
|
- app/assets/images/cms/menu/top_cap_menu_header.png
|
382
|
-
- app/assets/images/cms/menu.png
|
383
388
|
- app/assets/images/cms/menu_h.gif
|
384
389
|
- app/assets/images/cms/menu_header.png
|
385
390
|
- app/assets/images/cms/menu_open.png
|
386
391
|
- app/assets/images/cms/menu_open_bg.gif
|
387
|
-
- app/assets/images/cms/nav/on_bg.gif
|
388
392
|
- app/assets/images/cms/nav.png
|
393
|
+
- app/assets/images/cms/nav/on_bg.gif
|
389
394
|
- app/assets/images/cms/nav_admin.gif
|
390
395
|
- app/assets/images/cms/nav_admin_h.gif
|
391
396
|
- app/assets/images/cms/nav_admin_on.gif
|
@@ -864,11 +869,12 @@ files:
|
|
864
869
|
- app/views/tests/pretend/open_with_layout.html.erb
|
865
870
|
- bin/bcms
|
866
871
|
- bin/browsercms
|
872
|
+
- config/routes.rb
|
867
873
|
- db/browsercms.seeds.rb
|
868
874
|
- db/migrate/20080815014337_browsercms300.rb
|
869
875
|
- db/migrate/20130327184912_browsercms400.rb
|
870
|
-
- db/schema.rb
|
871
876
|
- db/seeds.rb
|
877
|
+
- doc/README_FOR_APP
|
872
878
|
- doc/design/blue_button.psd
|
873
879
|
- doc/design/gray_box.psd
|
874
880
|
- doc/design/main_nav.psd
|
@@ -877,22 +883,22 @@ files:
|
|
877
883
|
- doc/features/form_builder.md
|
878
884
|
- doc/features/simple_form_refactor.md
|
879
885
|
- doc/performance_tuning_notes.md
|
880
|
-
- doc/README_FOR_APP
|
881
886
|
- doc/release_notes.md
|
882
887
|
- doc/test_procedure.txt
|
883
888
|
- lib/acts_as_list.rb
|
884
889
|
- lib/browsercms.rb
|
890
|
+
- lib/cms/acts.rb
|
885
891
|
- lib/cms/acts/cms_user.rb
|
886
892
|
- lib/cms/acts/content_block.rb
|
887
893
|
- lib/cms/acts/content_page.rb
|
888
|
-
- lib/cms/acts.rb
|
889
894
|
- lib/cms/admin_tab.rb
|
890
895
|
- lib/cms/attachments/attachment_serving.rb
|
891
896
|
- lib/cms/attachments/configuration.rb
|
897
|
+
- lib/cms/authentication.rb
|
892
898
|
- lib/cms/authentication/controller.rb
|
893
899
|
- lib/cms/authentication/test_password_strategy.rb
|
894
|
-
- lib/cms/authentication.rb
|
895
900
|
- lib/cms/authoring.rb
|
901
|
+
- lib/cms/behaviors.rb
|
896
902
|
- lib/cms/behaviors/archiving.rb
|
897
903
|
- lib/cms/behaviors/attaching.rb
|
898
904
|
- lib/cms/behaviors/categorizing.rb
|
@@ -909,17 +915,16 @@ files:
|
|
909
915
|
- lib/cms/behaviors/taggable.rb
|
910
916
|
- lib/cms/behaviors/userstamping.rb
|
911
917
|
- lib/cms/behaviors/versioning.rb
|
912
|
-
- lib/cms/behaviors.rb
|
913
918
|
- lib/cms/caching.rb
|
914
919
|
- lib/cms/commands/actions.rb
|
915
920
|
- lib/cms/commands/to_version400.rb
|
921
|
+
- lib/cms/concerns.rb
|
916
922
|
- lib/cms/concerns/can_be_addressable.rb
|
917
923
|
- lib/cms/concerns/has_content_type.rb
|
918
924
|
- lib/cms/concerns/ignores_publishing.rb
|
919
|
-
- lib/cms/
|
925
|
+
- lib/cms/configuration.rb
|
920
926
|
- lib/cms/configuration/configurable_template.rb
|
921
927
|
- lib/cms/configuration/devise.rb
|
922
|
-
- lib/cms/configuration.rb
|
923
928
|
- lib/cms/configure_simple_form.rb
|
924
929
|
- lib/cms/configure_simple_form_bootstrap.rb
|
925
930
|
- lib/cms/content_filter.rb
|
@@ -934,6 +939,7 @@ files:
|
|
934
939
|
- lib/cms/engine_helper.rb
|
935
940
|
- lib/cms/error_handling.rb
|
936
941
|
- lib/cms/error_pages.rb
|
942
|
+
- lib/cms/extensions.rb
|
937
943
|
- lib/cms/extensions/action_view/base.rb
|
938
944
|
- lib/cms/extensions/active_model/name.rb
|
939
945
|
- lib/cms/extensions/active_record/base.rb
|
@@ -944,7 +950,6 @@ files:
|
|
944
950
|
- lib/cms/extensions/integer.rb
|
945
951
|
- lib/cms/extensions/nil.rb
|
946
952
|
- lib/cms/extensions/string.rb
|
947
|
-
- lib/cms/extensions.rb
|
948
953
|
- lib/cms/form_builder/content_block_form_builder.rb
|
949
954
|
- lib/cms/form_builder/default_input.rb
|
950
955
|
- lib/cms/form_builder/deprecated_inputs.rb
|
@@ -959,50 +964,44 @@ files:
|
|
959
964
|
- lib/cms/route_extensions.rb
|
960
965
|
- lib/cms/version.rb
|
961
966
|
- lib/command_line.rb
|
967
|
+
- lib/generators/browser_cms.rb
|
968
|
+
- lib/generators/browser_cms/demo_site/USAGE
|
962
969
|
- lib/generators/browser_cms/demo_site/templates/demo.seeds.rb
|
963
970
|
- lib/generators/browser_cms/demo_site/templates/demo_site.rake
|
964
971
|
- lib/generators/browser_cms/demo_site/templates/logo.jpg
|
965
972
|
- lib/generators/browser_cms/demo_site/templates/splash.jpg
|
966
973
|
- lib/generators/browser_cms/demo_site/templates/style.css
|
967
|
-
- lib/generators/
|
968
|
-
- lib/generators/browser_cms.rb
|
974
|
+
- lib/generators/cms/content_block/USAGE
|
969
975
|
- lib/generators/cms/content_block/content_block_generator.rb
|
970
976
|
- lib/generators/cms/content_block/templates/_form.html.erb
|
971
977
|
- lib/generators/cms/content_block/templates/application_controller.rb.erb
|
972
978
|
- lib/generators/cms/content_block/templates/render.html.erb
|
973
|
-
- lib/generators/cms/content_block/USAGE
|
974
|
-
- lib/generators/cms/install/install_generator.rb
|
975
979
|
- lib/generators/cms/install/USAGE
|
980
|
+
- lib/generators/cms/install/install_generator.rb
|
981
|
+
- lib/generators/cms/portlet/USAGE
|
976
982
|
- lib/generators/cms/portlet/portlet_generator.rb
|
977
983
|
- lib/generators/cms/portlet/templates/_form.html.erb
|
978
984
|
- lib/generators/cms/portlet/templates/portlet.rb
|
979
985
|
- lib/generators/cms/portlet/templates/portlet_helper.rb
|
980
986
|
- lib/generators/cms/portlet/templates/render.html.erb
|
981
987
|
- lib/generators/cms/portlet/templates/unit_test.erb
|
982
|
-
- lib/generators/cms/
|
988
|
+
- lib/generators/cms/project/USAGE
|
983
989
|
- lib/generators/cms/project/templates/COPYRIGHT.txt
|
990
|
+
- lib/generators/cms/project/templates/GPL.txt
|
991
|
+
- lib/generators/cms/project/templates/LICENSE.txt
|
992
|
+
- lib/generators/cms/project/templates/USAGE
|
984
993
|
- lib/generators/cms/project/templates/devise.rb.erb
|
985
994
|
- lib/generators/cms/project/templates/gitignore.erb
|
986
|
-
- lib/generators/cms/project/templates/GPL.txt
|
987
995
|
- lib/generators/cms/project/templates/install_generator.erb
|
988
|
-
- lib/generators/cms/project/templates/LICENSE.txt
|
989
996
|
- lib/generators/cms/project/templates/module_tasks.rake
|
990
|
-
- lib/generators/cms/
|
991
|
-
- lib/generators/cms/project/USAGE
|
997
|
+
- lib/generators/cms/template/USAGE
|
992
998
|
- lib/generators/cms/template/template_generator.rb
|
993
999
|
- lib/generators/cms/template/templates/template.erb
|
994
|
-
- lib/generators/cms/template/USAGE
|
995
1000
|
- lib/sequence.rb
|
1001
|
+
- lib/tasks/cms.rake
|
996
1002
|
- lib/templates/active_record/model/model.rb
|
997
1003
|
- vendor/assets/javascripts/jquery.cookie.js
|
998
1004
|
- vendor/assets/javascripts/jquery.selectbox.js
|
999
|
-
- LICENSE.txt
|
1000
|
-
- COPYRIGHT.txt
|
1001
|
-
- GPL.txt
|
1002
|
-
- README.markdown
|
1003
|
-
- .yardopts
|
1004
|
-
- config/routes.rb
|
1005
|
-
- lib/tasks/cms.rake
|
1006
1005
|
homepage: http://www.browsercms.org
|
1007
1006
|
licenses: []
|
1008
1007
|
metadata: {}
|
@@ -1022,7 +1021,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1022
1021
|
version: 1.3.1
|
1023
1022
|
requirements: []
|
1024
1023
|
rubyforge_project:
|
1025
|
-
rubygems_version: 2.
|
1024
|
+
rubygems_version: 2.2.2
|
1026
1025
|
signing_key:
|
1027
1026
|
specification_version: 4
|
1028
1027
|
summary: Web Content Management in Rails
|
data/db/schema.rb
DELETED
@@ -1,493 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended to check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(:version => 20100705083859) do
|
15
|
-
|
16
|
-
create_table "attachment_versions", :force => true do |t|
|
17
|
-
t.integer "attachment_id"
|
18
|
-
t.integer "version"
|
19
|
-
t.string "file_path"
|
20
|
-
t.string "file_location"
|
21
|
-
t.string "file_extension"
|
22
|
-
t.string "file_type"
|
23
|
-
t.integer "file_size"
|
24
|
-
t.datetime "created_at"
|
25
|
-
t.datetime "updated_at"
|
26
|
-
t.string "name"
|
27
|
-
t.boolean "published", :default => false
|
28
|
-
t.boolean "deleted", :default => false
|
29
|
-
t.boolean "archived", :default => false
|
30
|
-
t.string "version_comment"
|
31
|
-
t.integer "created_by_id"
|
32
|
-
t.integer "updated_by_id"
|
33
|
-
end
|
34
|
-
|
35
|
-
add_index "attachment_versions", ["attachment_id"], :name => "index_attachment_versions_on_attachment_id"
|
36
|
-
|
37
|
-
create_table "attachments", :force => true do |t|
|
38
|
-
t.integer "version"
|
39
|
-
t.integer "lock_version", :default => 0
|
40
|
-
t.string "file_path"
|
41
|
-
t.string "file_location"
|
42
|
-
t.string "file_extension"
|
43
|
-
t.string "file_type"
|
44
|
-
t.integer "file_size"
|
45
|
-
t.datetime "created_at"
|
46
|
-
t.datetime "updated_at"
|
47
|
-
t.string "name"
|
48
|
-
t.boolean "published", :default => false
|
49
|
-
t.boolean "deleted", :default => false
|
50
|
-
t.boolean "archived", :default => false
|
51
|
-
t.integer "created_by_id"
|
52
|
-
t.integer "updated_by_id"
|
53
|
-
end
|
54
|
-
|
55
|
-
create_table "categories", :force => true do |t|
|
56
|
-
t.integer "category_type_id"
|
57
|
-
t.integer "parent_id"
|
58
|
-
t.string "name"
|
59
|
-
t.datetime "created_at"
|
60
|
-
t.datetime "updated_at"
|
61
|
-
end
|
62
|
-
|
63
|
-
create_table "category_types", :force => true do |t|
|
64
|
-
t.string "name"
|
65
|
-
t.datetime "created_at"
|
66
|
-
t.datetime "updated_at"
|
67
|
-
end
|
68
|
-
|
69
|
-
create_table "connectors", :force => true do |t|
|
70
|
-
t.integer "page_id"
|
71
|
-
t.integer "page_version"
|
72
|
-
t.integer "connectable_id"
|
73
|
-
t.string "connectable_type"
|
74
|
-
t.integer "connectable_version"
|
75
|
-
t.string "container"
|
76
|
-
t.integer "position"
|
77
|
-
t.datetime "created_at"
|
78
|
-
t.datetime "updated_at"
|
79
|
-
end
|
80
|
-
|
81
|
-
add_index "connectors", ["connectable_type"], :name => "index_connectors_on_connectable_type"
|
82
|
-
add_index "connectors", ["connectable_version"], :name => "index_connectors_on_connectable_version"
|
83
|
-
add_index "connectors", ["page_id"], :name => "index_connectors_on_page_id"
|
84
|
-
add_index "connectors", ["page_version"], :name => "index_connectors_on_page_version"
|
85
|
-
|
86
|
-
create_table "content_type_groups", :force => true do |t|
|
87
|
-
t.string "name"
|
88
|
-
t.datetime "created_at"
|
89
|
-
t.datetime "updated_at"
|
90
|
-
end
|
91
|
-
|
92
|
-
create_table "content_types", :force => true do |t|
|
93
|
-
t.string "name"
|
94
|
-
t.integer "content_type_group_id"
|
95
|
-
t.integer "priority", :default => 2
|
96
|
-
t.datetime "created_at"
|
97
|
-
t.datetime "updated_at"
|
98
|
-
end
|
99
|
-
|
100
|
-
add_index "content_types", ["content_type_group_id"], :name => "index_content_types_on_content_type_group_id"
|
101
|
-
add_index "content_types", ["name"], :name => "index_content_types_on_name"
|
102
|
-
|
103
|
-
create_table "dynamic_view_versions", :force => true do |t|
|
104
|
-
t.integer "dynamic_view_id"
|
105
|
-
t.integer "version"
|
106
|
-
t.string "type"
|
107
|
-
t.string "name"
|
108
|
-
t.string "format"
|
109
|
-
t.string "handler"
|
110
|
-
t.text "body"
|
111
|
-
t.datetime "created_at"
|
112
|
-
t.datetime "updated_at"
|
113
|
-
t.boolean "published", :default => false
|
114
|
-
t.boolean "deleted", :default => false
|
115
|
-
t.boolean "archived", :default => false
|
116
|
-
t.string "version_comment"
|
117
|
-
t.integer "created_by_id"
|
118
|
-
t.integer "updated_by_id"
|
119
|
-
end
|
120
|
-
|
121
|
-
create_table "dynamic_views", :force => true do |t|
|
122
|
-
t.integer "version"
|
123
|
-
t.integer "lock_version", :default => 0
|
124
|
-
t.string "type"
|
125
|
-
t.string "name"
|
126
|
-
t.string "format"
|
127
|
-
t.string "handler"
|
128
|
-
t.text "body"
|
129
|
-
t.datetime "created_at"
|
130
|
-
t.datetime "updated_at"
|
131
|
-
t.boolean "published", :default => false
|
132
|
-
t.boolean "deleted", :default => false
|
133
|
-
t.boolean "archived", :default => false
|
134
|
-
t.integer "created_by_id"
|
135
|
-
t.integer "updated_by_id"
|
136
|
-
end
|
137
|
-
|
138
|
-
create_table "email_messages", :force => true do |t|
|
139
|
-
t.string "sender"
|
140
|
-
t.text "recipients"
|
141
|
-
t.text "subject"
|
142
|
-
t.text "cc"
|
143
|
-
t.text "bcc"
|
144
|
-
t.text "body"
|
145
|
-
t.string "content_type"
|
146
|
-
t.datetime "delivered_at"
|
147
|
-
t.datetime "created_at"
|
148
|
-
t.datetime "updated_at"
|
149
|
-
end
|
150
|
-
|
151
|
-
create_table "file_block_versions", :force => true do |t|
|
152
|
-
t.integer "file_block_id"
|
153
|
-
t.integer "version"
|
154
|
-
t.string "type"
|
155
|
-
t.string "name"
|
156
|
-
t.integer "attachment_id"
|
157
|
-
t.integer "attachment_version"
|
158
|
-
t.boolean "published", :default => false
|
159
|
-
t.boolean "deleted", :default => false
|
160
|
-
t.boolean "archived", :default => false
|
161
|
-
t.string "version_comment"
|
162
|
-
t.integer "created_by_id"
|
163
|
-
t.integer "updated_by_id"
|
164
|
-
t.datetime "created_at"
|
165
|
-
t.datetime "updated_at"
|
166
|
-
end
|
167
|
-
|
168
|
-
add_index "file_block_versions", ["file_block_id"], :name => "index_file_block_versions_on_file_block_id"
|
169
|
-
add_index "file_block_versions", ["version"], :name => "index_file_block_versions_on_version"
|
170
|
-
|
171
|
-
create_table "file_blocks", :force => true do |t|
|
172
|
-
t.integer "version"
|
173
|
-
t.integer "lock_version", :default => 0
|
174
|
-
t.string "type"
|
175
|
-
t.string "name"
|
176
|
-
t.integer "attachment_id"
|
177
|
-
t.integer "attachment_version"
|
178
|
-
t.boolean "published", :default => false
|
179
|
-
t.boolean "deleted", :default => false
|
180
|
-
t.boolean "archived", :default => false
|
181
|
-
t.integer "created_by_id"
|
182
|
-
t.integer "updated_by_id"
|
183
|
-
t.datetime "created_at"
|
184
|
-
t.datetime "updated_at"
|
185
|
-
end
|
186
|
-
|
187
|
-
add_index "file_blocks", ["deleted"], :name => "index_file_blocks_on_deleted"
|
188
|
-
add_index "file_blocks", ["type"], :name => "index_file_blocks_on_type"
|
189
|
-
|
190
|
-
create_table "group_permissions", :force => true do |t|
|
191
|
-
t.integer "group_id"
|
192
|
-
t.integer "permission_id"
|
193
|
-
end
|
194
|
-
|
195
|
-
add_index "group_permissions", ["group_id", "permission_id"], :name => "index_group_permissions_on_group_id_and_permission_id"
|
196
|
-
add_index "group_permissions", ["group_id"], :name => "index_group_permissions_on_group_id"
|
197
|
-
add_index "group_permissions", ["permission_id"], :name => "index_group_permissions_on_permission_id"
|
198
|
-
|
199
|
-
create_table "group_sections", :force => true do |t|
|
200
|
-
t.integer "group_id"
|
201
|
-
t.integer "section_id"
|
202
|
-
end
|
203
|
-
|
204
|
-
add_index "group_sections", ["group_id"], :name => "index_group_sections_on_group_id"
|
205
|
-
add_index "group_sections", ["section_id"], :name => "index_group_sections_on_section_id"
|
206
|
-
|
207
|
-
create_table "group_type_permissions", :force => true do |t|
|
208
|
-
t.integer "group_type_id"
|
209
|
-
t.integer "permission_id"
|
210
|
-
end
|
211
|
-
|
212
|
-
create_table "group_types", :force => true do |t|
|
213
|
-
t.string "name"
|
214
|
-
t.boolean "guest", :default => false
|
215
|
-
t.boolean "cms_access", :default => false
|
216
|
-
t.datetime "created_at"
|
217
|
-
t.datetime "updated_at"
|
218
|
-
end
|
219
|
-
|
220
|
-
add_index "group_types", ["cms_access"], :name => "index_group_types_on_cms_access"
|
221
|
-
|
222
|
-
create_table "groups", :force => true do |t|
|
223
|
-
t.string "name"
|
224
|
-
t.string "code"
|
225
|
-
t.integer "group_type_id"
|
226
|
-
t.datetime "created_at"
|
227
|
-
t.datetime "updated_at"
|
228
|
-
end
|
229
|
-
|
230
|
-
add_index "groups", ["code"], :name => "index_groups_on_code"
|
231
|
-
add_index "groups", ["group_type_id"], :name => "index_groups_on_group_type_id"
|
232
|
-
|
233
|
-
create_table "html_block_versions", :force => true do |t|
|
234
|
-
t.integer "html_block_id"
|
235
|
-
t.integer "version"
|
236
|
-
t.string "name"
|
237
|
-
t.text "content", :limit => 16777215
|
238
|
-
t.boolean "published", :default => false
|
239
|
-
t.boolean "deleted", :default => false
|
240
|
-
t.boolean "archived", :default => false
|
241
|
-
t.string "version_comment"
|
242
|
-
t.integer "created_by_id"
|
243
|
-
t.integer "updated_by_id"
|
244
|
-
t.datetime "created_at"
|
245
|
-
t.datetime "updated_at"
|
246
|
-
end
|
247
|
-
|
248
|
-
add_index "html_block_versions", ["html_block_id"], :name => "index_html_block_versions_on_html_block_id"
|
249
|
-
add_index "html_block_versions", ["version"], :name => "index_html_block_versions_on_version"
|
250
|
-
|
251
|
-
create_table "html_blocks", :force => true do |t|
|
252
|
-
t.integer "version"
|
253
|
-
t.integer "lock_version", :default => 0
|
254
|
-
t.string "name"
|
255
|
-
t.text "content", :limit => 16777215
|
256
|
-
t.boolean "published", :default => false
|
257
|
-
t.boolean "deleted", :default => false
|
258
|
-
t.boolean "archived", :default => false
|
259
|
-
t.integer "created_by_id"
|
260
|
-
t.integer "updated_by_id"
|
261
|
-
t.datetime "created_at"
|
262
|
-
t.datetime "updated_at"
|
263
|
-
end
|
264
|
-
|
265
|
-
add_index "html_blocks", ["deleted"], :name => "index_html_blocks_on_deleted"
|
266
|
-
|
267
|
-
create_table "link_versions", :force => true do |t|
|
268
|
-
t.integer "link_id"
|
269
|
-
t.integer "version"
|
270
|
-
t.string "name"
|
271
|
-
t.string "url"
|
272
|
-
t.boolean "new_window", :default => false
|
273
|
-
t.datetime "created_at"
|
274
|
-
t.datetime "updated_at"
|
275
|
-
t.boolean "published", :default => false
|
276
|
-
t.boolean "deleted", :default => false
|
277
|
-
t.boolean "archived", :default => false
|
278
|
-
t.string "version_comment"
|
279
|
-
t.integer "created_by_id"
|
280
|
-
t.integer "updated_by_id"
|
281
|
-
end
|
282
|
-
|
283
|
-
create_table "links", :force => true do |t|
|
284
|
-
t.integer "version"
|
285
|
-
t.integer "lock_version", :default => 0
|
286
|
-
t.string "name"
|
287
|
-
t.string "url"
|
288
|
-
t.boolean "new_window", :default => false
|
289
|
-
t.datetime "created_at"
|
290
|
-
t.datetime "updated_at"
|
291
|
-
t.boolean "published", :default => false
|
292
|
-
t.boolean "deleted", :default => false
|
293
|
-
t.boolean "archived", :default => false
|
294
|
-
t.integer "created_by_id"
|
295
|
-
t.integer "updated_by_id"
|
296
|
-
t.integer "latest_version"
|
297
|
-
end
|
298
|
-
|
299
|
-
create_table "page_route_options", :force => true do |t|
|
300
|
-
t.integer "page_route_id"
|
301
|
-
t.string "type"
|
302
|
-
t.string "name"
|
303
|
-
t.string "value"
|
304
|
-
t.datetime "created_at"
|
305
|
-
t.datetime "updated_at"
|
306
|
-
end
|
307
|
-
|
308
|
-
create_table "page_routes", :force => true do |t|
|
309
|
-
t.string "name"
|
310
|
-
t.string "pattern"
|
311
|
-
t.integer "page_id"
|
312
|
-
t.text "code"
|
313
|
-
t.datetime "created_at"
|
314
|
-
t.datetime "updated_at"
|
315
|
-
end
|
316
|
-
|
317
|
-
create_table "page_versions", :force => true do |t|
|
318
|
-
t.integer "page_id"
|
319
|
-
t.integer "version"
|
320
|
-
t.string "name"
|
321
|
-
t.string "title"
|
322
|
-
t.string "path"
|
323
|
-
t.string "template_file_name"
|
324
|
-
t.text "description"
|
325
|
-
t.text "keywords"
|
326
|
-
t.string "language"
|
327
|
-
t.boolean "cacheable", :default => false
|
328
|
-
t.boolean "hidden", :default => false
|
329
|
-
t.boolean "published", :default => false
|
330
|
-
t.boolean "deleted", :default => false
|
331
|
-
t.boolean "archived", :default => false
|
332
|
-
t.string "version_comment"
|
333
|
-
t.integer "created_by_id"
|
334
|
-
t.integer "updated_by_id"
|
335
|
-
t.datetime "created_at"
|
336
|
-
t.datetime "updated_at"
|
337
|
-
end
|
338
|
-
|
339
|
-
add_index "page_versions", ["page_id"], :name => "index_page_versions_on_page_id"
|
340
|
-
|
341
|
-
create_table "pages", :force => true do |t|
|
342
|
-
t.integer "version"
|
343
|
-
t.integer "lock_version", :default => 0
|
344
|
-
t.string "name"
|
345
|
-
t.string "title"
|
346
|
-
t.string "path"
|
347
|
-
t.string "template_file_name"
|
348
|
-
t.text "description"
|
349
|
-
t.text "keywords"
|
350
|
-
t.string "language"
|
351
|
-
t.boolean "cacheable", :default => false
|
352
|
-
t.boolean "hidden", :default => false
|
353
|
-
t.boolean "published", :default => false
|
354
|
-
t.boolean "deleted", :default => false
|
355
|
-
t.boolean "archived", :default => false
|
356
|
-
t.integer "created_by_id"
|
357
|
-
t.integer "updated_by_id"
|
358
|
-
t.datetime "created_at"
|
359
|
-
t.datetime "updated_at"
|
360
|
-
t.integer "latest_version"
|
361
|
-
end
|
362
|
-
|
363
|
-
add_index "pages", ["deleted"], :name => "index_pages_on_deleted"
|
364
|
-
add_index "pages", ["path"], :name => "index_pages_on_path"
|
365
|
-
add_index "pages", ["version"], :name => "index_pages_on_version"
|
366
|
-
|
367
|
-
create_table "permissions", :force => true do |t|
|
368
|
-
t.string "name"
|
369
|
-
t.string "full_name"
|
370
|
-
t.string "description"
|
371
|
-
t.string "for_module"
|
372
|
-
t.datetime "created_at"
|
373
|
-
t.datetime "updated_at"
|
374
|
-
end
|
375
|
-
|
376
|
-
create_table "portlet_attributes", :force => true do |t|
|
377
|
-
t.integer "portlet_id"
|
378
|
-
t.string "name"
|
379
|
-
t.text "value"
|
380
|
-
end
|
381
|
-
|
382
|
-
add_index "portlet_attributes", ["portlet_id"], :name => "index_portlet_attributes_on_portlet_id"
|
383
|
-
|
384
|
-
create_table "portlets", :force => true do |t|
|
385
|
-
t.string "type"
|
386
|
-
t.string "name"
|
387
|
-
t.boolean "archived", :default => false
|
388
|
-
t.boolean "deleted", :default => false
|
389
|
-
t.integer "created_by_id"
|
390
|
-
t.integer "updated_by_id"
|
391
|
-
t.datetime "created_at"
|
392
|
-
t.datetime "updated_at"
|
393
|
-
end
|
394
|
-
|
395
|
-
add_index "portlets", ["name"], :name => "index_portlets_on_name"
|
396
|
-
|
397
|
-
create_table "redirects", :force => true do |t|
|
398
|
-
t.string "from_path"
|
399
|
-
t.string "to_path"
|
400
|
-
t.datetime "created_at"
|
401
|
-
t.datetime "updated_at"
|
402
|
-
end
|
403
|
-
|
404
|
-
add_index "redirects", ["from_path"], :name => "index_redirects_on_from_path"
|
405
|
-
|
406
|
-
create_table "section_nodes", :force => true do |t|
|
407
|
-
t.string "node_type"
|
408
|
-
t.integer "node_id"
|
409
|
-
t.integer "position"
|
410
|
-
t.datetime "created_at"
|
411
|
-
t.datetime "updated_at"
|
412
|
-
t.string "ancestry"
|
413
|
-
end
|
414
|
-
|
415
|
-
add_index "section_nodes", ["ancestry"], :name => "index_section_nodes_on_ancestry"
|
416
|
-
add_index "section_nodes", ["node_type"], :name => "index_section_nodes_on_node_type"
|
417
|
-
|
418
|
-
create_table "sections", :force => true do |t|
|
419
|
-
t.string "name"
|
420
|
-
t.string "path"
|
421
|
-
t.boolean "root", :default => false
|
422
|
-
t.boolean "hidden", :default => false
|
423
|
-
t.datetime "created_at"
|
424
|
-
t.datetime "updated_at"
|
425
|
-
end
|
426
|
-
|
427
|
-
add_index "sections", ["path"], :name => "index_sections_on_path"
|
428
|
-
|
429
|
-
create_table "sites", :force => true do |t|
|
430
|
-
t.string "name"
|
431
|
-
t.string "domain"
|
432
|
-
t.boolean "the_default"
|
433
|
-
t.datetime "created_at"
|
434
|
-
t.datetime "updated_at"
|
435
|
-
end
|
436
|
-
|
437
|
-
create_table "taggings", :force => true do |t|
|
438
|
-
t.integer "tag_id"
|
439
|
-
t.integer "taggable_id"
|
440
|
-
t.string "taggable_type"
|
441
|
-
t.integer "taggable_version"
|
442
|
-
t.datetime "created_at"
|
443
|
-
t.datetime "updated_at"
|
444
|
-
end
|
445
|
-
|
446
|
-
create_table "tags", :force => true do |t|
|
447
|
-
t.string "name"
|
448
|
-
t.datetime "created_at"
|
449
|
-
t.datetime "updated_at"
|
450
|
-
end
|
451
|
-
|
452
|
-
create_table "tasks", :force => true do |t|
|
453
|
-
t.integer "assigned_by_id"
|
454
|
-
t.integer "assigned_to_id"
|
455
|
-
t.integer "page_id"
|
456
|
-
t.text "comment"
|
457
|
-
t.date "due_date"
|
458
|
-
t.datetime "completed_at"
|
459
|
-
t.datetime "created_at"
|
460
|
-
t.datetime "updated_at"
|
461
|
-
end
|
462
|
-
|
463
|
-
add_index "tasks", ["assigned_to_id"], :name => "index_tasks_on_assigned_to_id"
|
464
|
-
add_index "tasks", ["completed_at"], :name => "index_tasks_on_completed_at"
|
465
|
-
add_index "tasks", ["page_id"], :name => "index_tasks_on_page_id"
|
466
|
-
|
467
|
-
create_table "user_group_memberships", :force => true do |t|
|
468
|
-
t.integer "user_id"
|
469
|
-
t.integer "group_id"
|
470
|
-
end
|
471
|
-
|
472
|
-
add_index "user_group_memberships", ["group_id"], :name => "index_user_group_memberships_on_group_id"
|
473
|
-
add_index "user_group_memberships", ["user_id"], :name => "index_user_group_memberships_on_user_id"
|
474
|
-
|
475
|
-
create_table "users", :force => true do |t|
|
476
|
-
t.string "login", :limit => 40
|
477
|
-
t.string "first_name", :limit => 40
|
478
|
-
t.string "last_name", :limit => 40
|
479
|
-
t.string "email", :limit => 40
|
480
|
-
t.string "crypted_password", :limit => 40
|
481
|
-
t.string "salt", :limit => 40
|
482
|
-
t.datetime "created_at"
|
483
|
-
t.datetime "updated_at"
|
484
|
-
t.datetime "expires_at"
|
485
|
-
t.string "remember_token", :limit => 40
|
486
|
-
t.datetime "remember_token_expires_at"
|
487
|
-
t.string "reset_token"
|
488
|
-
end
|
489
|
-
|
490
|
-
add_index "users", ["expires_at"], :name => "index_users_on_expires_at"
|
491
|
-
add_index "users", ["login"], :name => "index_users_on_login", :unique => true
|
492
|
-
|
493
|
-
end
|