alchemy_cms 3.3.0.rc1 → 3.3.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -2
  3. data/Gemfile +1 -0
  4. data/alchemy_cms.gemspec +6 -6
  5. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +0 -7
  6. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +4 -4
  7. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +51 -5
  8. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +0 -2
  9. data/app/assets/stylesheets/alchemy/elements.scss +2 -2
  10. data/app/controllers/alchemy/admin/elements_controller.rb +2 -0
  11. data/app/controllers/alchemy/admin/pages_controller.rb +11 -3
  12. data/app/controllers/alchemy/admin/pictures_controller.rb +1 -0
  13. data/app/models/alchemy/element.rb +3 -1
  14. data/app/models/alchemy/element/element_contents.rb +2 -7
  15. data/app/models/alchemy/element/presenters.rb +11 -4
  16. data/app/models/alchemy/page.rb +3 -1
  17. data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
  18. data/app/views/alchemy/admin/contents/create.js.erb +0 -1
  19. data/app/views/alchemy/admin/elements/_element_header.html.erb +3 -1
  20. data/app/views/alchemy/admin/elements/order.js.erb +25 -10
  21. data/app/views/alchemy/admin/elements/update.js.erb +1 -2
  22. data/app/views/alchemy/admin/essence_files/assign.js.erb +0 -1
  23. data/app/views/alchemy/admin/essence_pictures/assign.js.erb +0 -1
  24. data/app/views/alchemy/admin/legacy_page_urls/create.js.erb +0 -1
  25. data/app/views/alchemy/admin/pages/destroy.js.erb +0 -1
  26. data/app/views/alchemy/admin/pages/update.js.erb +6 -4
  27. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +2 -1
  28. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +1 -7
  29. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +0 -1
  30. data/bin/alchemy +1 -1
  31. data/bin/rspec +3 -2
  32. data/bin/spring +6 -6
  33. data/config/alchemy/config.yml +6 -1
  34. data/lib/alchemy/seeder.rb +9 -3
  35. data/lib/alchemy/version.rb +1 -1
  36. metadata +6 -471
  37. data/spec/controllers/alchemy/admin/attachments_controller_spec.rb +0 -193
  38. data/spec/controllers/alchemy/admin/base_controller_spec.rb +0 -87
  39. data/spec/controllers/alchemy/admin/clipboard_controller_spec.rb +0 -60
  40. data/spec/controllers/alchemy/admin/contents_controller_spec.rb +0 -78
  41. data/spec/controllers/alchemy/admin/dashboard_controller_spec.rb +0 -144
  42. data/spec/controllers/alchemy/admin/elements_controller_spec.rb +0 -496
  43. data/spec/controllers/alchemy/admin/essence_files_controller_spec.rb +0 -76
  44. data/spec/controllers/alchemy/admin/essence_pictures_controller_spec.rb +0 -202
  45. data/spec/controllers/alchemy/admin/languages_controller_spec.rb +0 -73
  46. data/spec/controllers/alchemy/admin/layoutpages_controller_spec.rb +0 -21
  47. data/spec/controllers/alchemy/admin/pages_controller_spec.rb +0 -639
  48. data/spec/controllers/alchemy/admin/pictures_controller_spec.rb +0 -383
  49. data/spec/controllers/alchemy/admin/resources_controller_spec.rb +0 -81
  50. data/spec/controllers/alchemy/admin/tags_controller_spec.rb +0 -63
  51. data/spec/controllers/alchemy/admin/trash_controller_spec.rb +0 -67
  52. data/spec/controllers/alchemy/api/contents_controller_spec.rb +0 -125
  53. data/spec/controllers/alchemy/api/elements_controller_spec.rb +0 -124
  54. data/spec/controllers/alchemy/api/pages_controller_spec.rb +0 -167
  55. data/spec/controllers/alchemy/attachments_controller_spec.rb +0 -64
  56. data/spec/controllers/alchemy/base_controller_spec.rb +0 -106
  57. data/spec/controllers/alchemy/elements_controller_spec.rb +0 -48
  58. data/spec/controllers/alchemy/messages_controller_spec.rb +0 -204
  59. data/spec/controllers/alchemy/on_page_layout_mixin_spec.rb +0 -330
  60. data/spec/controllers/alchemy/pages_controller_spec.rb +0 -343
  61. data/spec/controllers/alchemy/pictures_controller_spec.rb +0 -415
  62. data/spec/dummy/Rakefile +0 -6
  63. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  64. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  65. data/spec/dummy/app/controllers/admin/events_controller.rb +0 -3
  66. data/spec/dummy/app/controllers/application_controller.rb +0 -15
  67. data/spec/dummy/app/controllers/login_controller.rb +0 -5
  68. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  69. data/spec/dummy/app/mailers/.gitkeep +0 -0
  70. data/spec/dummy/app/models/ability.rb +0 -9
  71. data/spec/dummy/app/models/dummy_model.rb +0 -3
  72. data/spec/dummy/app/models/dummy_user.rb +0 -15
  73. data/spec/dummy/app/models/event.rb +0 -10
  74. data/spec/dummy/app/models/location.rb +0 -3
  75. data/spec/dummy/app/views/alchemy/elements/_all_you_can_eat_editor.html.erb +0 -11
  76. data/spec/dummy/app/views/alchemy/elements/_all_you_can_eat_view.html.erb +0 -31
  77. data/spec/dummy/app/views/alchemy/elements/_article_editor.html.erb +0 -6
  78. data/spec/dummy/app/views/alchemy/elements/_article_view.html.erb +0 -10
  79. data/spec/dummy/app/views/alchemy/elements/_bild_editor.html.erb +0 -3
  80. data/spec/dummy/app/views/alchemy/elements/_bild_view.html.erb +0 -5
  81. data/spec/dummy/app/views/alchemy/elements/_contactform_editor.html.erb +0 -6
  82. data/spec/dummy/app/views/alchemy/elements/_contactform_view.html.erb +0 -16
  83. data/spec/dummy/app/views/alchemy/elements/_download_editor.html.erb +0 -3
  84. data/spec/dummy/app/views/alchemy/elements/_download_view.html.erb +0 -5
  85. data/spec/dummy/app/views/alchemy/elements/_erb_element_editor.html.erb +0 -3
  86. data/spec/dummy/app/views/alchemy/elements/_erb_element_view.html.erb +0 -5
  87. data/spec/dummy/app/views/alchemy/elements/_header_editor.html.erb +0 -3
  88. data/spec/dummy/app/views/alchemy/elements/_header_view.html.erb +0 -5
  89. data/spec/dummy/app/views/alchemy/elements/_headline_editor.html.erb +0 -1
  90. data/spec/dummy/app/views/alchemy/elements/_headline_view.html.erb +0 -1
  91. data/spec/dummy/app/views/alchemy/elements/_news_editor.html.erb +0 -5
  92. data/spec/dummy/app/views/alchemy/elements/_news_view.html.erb +0 -11
  93. data/spec/dummy/app/views/alchemy/elements/_search_editor.html.erb +0 -1
  94. data/spec/dummy/app/views/alchemy/elements/_search_view.html.erb +0 -4
  95. data/spec/dummy/app/views/alchemy/elements/_slide_editor.html.erb +0 -3
  96. data/spec/dummy/app/views/alchemy/elements/_slide_view.html.erb +0 -5
  97. data/spec/dummy/app/views/alchemy/elements/_slider_editor.html.erb +0 -2
  98. data/spec/dummy/app/views/alchemy/elements/_slider_view.html.erb +0 -4
  99. data/spec/dummy/app/views/alchemy/elements/_text_editor.html.erb +0 -3
  100. data/spec/dummy/app/views/alchemy/elements/_text_view.html.erb +0 -5
  101. data/spec/dummy/app/views/alchemy/page_layouts/_standard.html.erb +0 -15
  102. data/spec/dummy/app/views/layouts/application.html.erb +0 -17
  103. data/spec/dummy/bin/bundle +0 -3
  104. data/spec/dummy/bin/rails +0 -4
  105. data/spec/dummy/bin/rake +0 -4
  106. data/spec/dummy/config.ru +0 -4
  107. data/spec/dummy/config/alchemy/cells.yml +0 -5
  108. data/spec/dummy/config/alchemy/elements.yml +0 -109
  109. data/spec/dummy/config/alchemy/page_layouts.yml +0 -32
  110. data/spec/dummy/config/application.rb +0 -32
  111. data/spec/dummy/config/boot.rb +0 -5
  112. data/spec/dummy/config/database.yml +0 -32
  113. data/spec/dummy/config/environment.rb +0 -5
  114. data/spec/dummy/config/environments/development.rb +0 -41
  115. data/spec/dummy/config/environments/production.rb +0 -77
  116. data/spec/dummy/config/environments/test.rb +0 -43
  117. data/spec/dummy/config/initializers/alchemy.rb +0 -3
  118. data/spec/dummy/config/initializers/assets.rb +0 -11
  119. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  120. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  121. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  122. data/spec/dummy/config/initializers/inflections.rb +0 -16
  123. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  124. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  125. data/spec/dummy/config/initializers/session_store.rb +0 -3
  126. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  127. data/spec/dummy/config/locales/kl.yml +0 -2
  128. data/spec/dummy/config/routes.rb +0 -12
  129. data/spec/dummy/config/secrets.yml +0 -22
  130. data/spec/dummy/db/migrate/20121026104128_create_events.rb +0 -20
  131. data/spec/dummy/db/migrate/20130328101418_create_locations.rb +0 -9
  132. data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -1
  133. data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -1
  134. data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -1
  135. data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -1
  136. data/spec/dummy/db/migrate/20131209225243_create_dummy_users.rb +0 -9
  137. data/spec/dummy/db/migrate/20150122213511_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +0 -31
  138. data/spec/dummy/db/migrate/20150122213512_add_missing_unique_indices.acts_as_taggable_on_engine.rb +0 -20
  139. data/spec/dummy/db/migrate/20150122213513_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +0 -15
  140. data/spec/dummy/db/migrate/20150122213514_add_missing_taggable_index.acts_as_taggable_on_engine.rb +0 -10
  141. data/spec/dummy/db/migrate/20150412103152_create_dummy_model.rb +0 -7
  142. data/spec/dummy/db/migrate/20150608204610_add_parent_element_id_to_alchemy_elements.rb +0 -1
  143. data/spec/dummy/db/migrate/20150729151825_add_link_text_to_alchemy_essence_files.rb +0 -1
  144. data/spec/dummy/db/migrate/20150906195818_add_locale_to_alchemy_languages.rb +0 -1
  145. data/spec/dummy/db/schema.rb +0 -326
  146. data/spec/dummy/db/seeds.rb +0 -1
  147. data/spec/dummy/lib/assets/.gitkeep +0 -0
  148. data/spec/dummy/public/404.html +0 -67
  149. data/spec/dummy/public/422.html +0 -67
  150. data/spec/dummy/public/500.html +0 -66
  151. data/spec/dummy/public/favicon.ico +0 -0
  152. data/spec/dummy/spec/javascripts +0 -1
  153. data/spec/factories.rb +0 -13
  154. data/spec/features/admin/admin_layout_spec.rb +0 -14
  155. data/spec/features/admin/dashboard_spec.rb +0 -81
  156. data/spec/features/admin/edit_elements_feature_spec.rb +0 -36
  157. data/spec/features/admin/language_tree_feature_spec.rb +0 -32
  158. data/spec/features/admin/languages_features_spec.rb +0 -65
  159. data/spec/features/admin/legacy_page_url_management_spec.rb +0 -62
  160. data/spec/features/admin/link_overlay_spec.rb +0 -53
  161. data/spec/features/admin/locale_select_feature_spec.rb +0 -25
  162. data/spec/features/admin/modules_integration_spec.rb +0 -23
  163. data/spec/features/admin/navigation_feature_spec.rb +0 -22
  164. data/spec/features/admin/page_creation_feature_spec.rb +0 -51
  165. data/spec/features/admin/page_editing_feature_spec.rb +0 -135
  166. data/spec/features/admin/picture_library_integration_spec.rb +0 -62
  167. data/spec/features/admin/resources_integration_spec.rb +0 -128
  168. data/spec/features/admin/site_select_feature_spec.rb +0 -31
  169. data/spec/features/admin/tinymce_feature_spec.rb +0 -33
  170. data/spec/features/navigation_spec.rb +0 -9
  171. data/spec/features/page_feature_spec.rb +0 -186
  172. data/spec/features/page_redirects_spec.rb +0 -358
  173. data/spec/features/picture_security_spec.rb +0 -29
  174. data/spec/features/security_spec.rb +0 -24
  175. data/spec/features/translation_integration_spec.rb +0 -51
  176. data/spec/fixtures/500x500.png +0 -0
  177. data/spec/fixtures/80x60.png +0 -0
  178. data/spec/fixtures/animated.gif +0 -0
  179. data/spec/fixtures/image with spaces.png +0 -0
  180. data/spec/fixtures/image.png +0 -0
  181. data/spec/fixtures/image2.PNG +0 -0
  182. data/spec/fixtures/image3.jpeg +0 -0
  183. data/spec/helpers/alchemy/admin/attachments_helper_spec.rb +0 -15
  184. data/spec/helpers/alchemy/admin/base_helper_spec.rb +0 -280
  185. data/spec/helpers/alchemy/admin/contents_helper_spec.rb +0 -46
  186. data/spec/helpers/alchemy/admin/elements_helper_spec.rb +0 -314
  187. data/spec/helpers/alchemy/admin/essences_helper_spec.rb +0 -201
  188. data/spec/helpers/alchemy/admin/navigation_helper_spec.rb +0 -294
  189. data/spec/helpers/alchemy/admin/pages_helper_spec.rb +0 -63
  190. data/spec/helpers/alchemy/admin/pictures_helper_spec.rb +0 -28
  191. data/spec/helpers/alchemy/admin/tags_helper_spec.rb +0 -111
  192. data/spec/helpers/alchemy/base_helper_spec.rb +0 -44
  193. data/spec/helpers/alchemy/elements_block_helper_spec.rb +0 -135
  194. data/spec/helpers/alchemy/elements_helper_spec.rb +0 -326
  195. data/spec/helpers/alchemy/essences_helper_spec.rb +0 -85
  196. data/spec/helpers/alchemy/pages_helper_spec.rb +0 -499
  197. data/spec/helpers/alchemy/picture_url_helpers_spec.rb +0 -78
  198. data/spec/helpers/alchemy/url_helper_spec.rb +0 -200
  199. data/spec/javascripts/alchemy/dialog_spec.coffee +0 -82
  200. data/spec/javascripts/alchemy/link_overlay_spec.coffee +0 -25
  201. data/spec/javascripts/alchemy_integration_spec.coffee +0 -3
  202. data/spec/javascripts/fixtures/select.html +0 -3
  203. data/spec/javascripts/helpers/mock-ajax.js +0 -199
  204. data/spec/javascripts/helpers/test_responses/test_responses.js +0 -1
  205. data/spec/javascripts/support/jasmine.yml +0 -29
  206. data/spec/libraries/auth_accessors_spec.rb +0 -40
  207. data/spec/libraries/config_spec.rb +0 -111
  208. data/spec/libraries/controller_actions_spec.rb +0 -133
  209. data/spec/libraries/i18n_spec.rb +0 -37
  210. data/spec/libraries/kaminari/scoped_pagination_url_helper_spec.rb +0 -30
  211. data/spec/libraries/modules_spec.rb +0 -67
  212. data/spec/libraries/mount_point_spec.rb +0 -77
  213. data/spec/libraries/page_layout_spec.rb +0 -150
  214. data/spec/libraries/paths_spec.rb +0 -15
  215. data/spec/libraries/permissions_spec.rb +0 -260
  216. data/spec/libraries/resource_spec.rb +0 -344
  217. data/spec/libraries/resources_helper_spec.rb +0 -193
  218. data/spec/libraries/shell_spec.rb +0 -121
  219. data/spec/libraries/template_tracker_spec.rb +0 -85
  220. data/spec/libraries/tinymce_spec.rb +0 -111
  221. data/spec/libraries/userstamp_spec.rb +0 -10
  222. data/spec/mailers/alchemy/messages_spec.rb +0 -21
  223. data/spec/models/alchemy/attachment_spec.rb +0 -250
  224. data/spec/models/alchemy/cell_spec.rb +0 -101
  225. data/spec/models/alchemy/content_spec.rb +0 -513
  226. data/spec/models/alchemy/element_spec.rb +0 -862
  227. data/spec/models/alchemy/element_to_page_spec.rb +0 -13
  228. data/spec/models/alchemy/essence_boolean_spec.rb +0 -10
  229. data/spec/models/alchemy/essence_date_spec.rb +0 -28
  230. data/spec/models/alchemy/essence_file_spec.rb +0 -40
  231. data/spec/models/alchemy/essence_html_spec.rb +0 -18
  232. data/spec/models/alchemy/essence_link_spec.rb +0 -10
  233. data/spec/models/alchemy/essence_picture_spec.rb +0 -255
  234. data/spec/models/alchemy/essence_richtext_spec.rb +0 -23
  235. data/spec/models/alchemy/essence_select_spec.rb +0 -10
  236. data/spec/models/alchemy/essence_text_spec.rb +0 -110
  237. data/spec/models/alchemy/language_spec.rb +0 -243
  238. data/spec/models/alchemy/legacy_page_url_spec.rb +0 -21
  239. data/spec/models/alchemy/message_spec.rb +0 -55
  240. data/spec/models/alchemy/page_spec.rb +0 -2108
  241. data/spec/models/alchemy/picture_spec.rb +0 -418
  242. data/spec/models/alchemy/site_spec.rb +0 -168
  243. data/spec/models/alchemy/tag_spec.rb +0 -29
  244. data/spec/models/dummy_model_spec.rb +0 -10
  245. data/spec/requests/alchemy/admin/resources_requests_spec.rb +0 -26
  246. data/spec/requests/alchemy/admin/site_requests_spec.rb +0 -19
  247. data/spec/requests/alchemy/site_requests_spec.rb +0 -18
  248. data/spec/requests/alchemy/sitemap_spec.rb +0 -56
  249. data/spec/routing/api_routing_spec.rb +0 -150
  250. data/spec/routing/routing_spec.rb +0 -340
  251. data/spec/spec_helper.rb +0 -90
  252. data/spec/support/ci/install_phantomjs +0 -7
  253. data/spec/support/hint_examples.rb +0 -28
  254. data/spec/support/test_tweaks.rb +0 -31
  255. data/spec/support/transformation_examples.rb +0 -179
  256. data/spec/tasks/helpers_spec.rb +0 -217
  257. data/spec/views/admin/pictures/show_spec.rb +0 -43
  258. data/spec/views/essences/essence_boolean_editor_spec.rb +0 -32
  259. data/spec/views/essences/essence_boolean_view_spec.rb +0 -23
  260. data/spec/views/essences/essence_date_view_spec.rb +0 -38
  261. data/spec/views/essences/essence_file_editor_spec.rb +0 -59
  262. data/spec/views/essences/essence_file_view_spec.rb +0 -77
  263. data/spec/views/essences/essence_html_view_spec.rb +0 -22
  264. data/spec/views/essences/essence_link_view_spec.rb +0 -41
  265. data/spec/views/essences/essence_picture_editor_spec.rb +0 -80
  266. data/spec/views/essences/essence_picture_view_spec.rb +0 -128
  267. data/spec/views/essences/essence_richtext_view_spec.rb +0 -32
  268. data/spec/views/essences/essence_select_view_spec.rb +0 -11
  269. data/spec/views/essences/essence_text_view_spec.rb +0 -51
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20130827094554_alchemy_two_point_six.rb
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb
@@ -1,9 +0,0 @@
1
- class CreateDummyUsers < ActiveRecord::Migration
2
- def change
3
- create_table :dummy_users do |t|
4
- t.string :email
5
- t.string :password
6
- end
7
- add_index :dummy_users, :email
8
- end
9
- end
@@ -1,31 +0,0 @@
1
- # This migration comes from acts_as_taggable_on_engine (originally 1)
2
- class ActsAsTaggableOnMigration < ActiveRecord::Migration
3
- def self.up
4
- create_table :tags do |t|
5
- t.string :name
6
- end
7
-
8
- create_table :taggings do |t|
9
- t.references :tag
10
-
11
- # You should make sure that the column created is
12
- # long enough to store the required class names.
13
- t.references :taggable, polymorphic: true
14
- t.references :tagger, polymorphic: true
15
-
16
- # Limit is created to prevent MySQL error on index
17
- # length for MyISAM table type: http://bit.ly/vgW2Ql
18
- t.string :context, limit: 128
19
-
20
- t.datetime :created_at
21
- end
22
-
23
- add_index :taggings, :tag_id
24
- add_index :taggings, [:taggable_id, :taggable_type, :context]
25
- end
26
-
27
- def self.down
28
- drop_table :taggings
29
- drop_table :tags
30
- end
31
- end
@@ -1,20 +0,0 @@
1
- # This migration comes from acts_as_taggable_on_engine (originally 2)
2
- class AddMissingUniqueIndices < ActiveRecord::Migration
3
- def self.up
4
- add_index :tags, :name, unique: true
5
-
6
- remove_index :taggings, :tag_id
7
- remove_index :taggings, [:taggable_id, :taggable_type, :context]
8
- add_index :taggings,
9
- [:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type],
10
- unique: true, name: 'taggings_idx'
11
- end
12
-
13
- def self.down
14
- remove_index :tags, :name
15
-
16
- remove_index :taggings, name: 'taggings_idx'
17
- add_index :taggings, :tag_id
18
- add_index :taggings, [:taggable_id, :taggable_type, :context]
19
- end
20
- end
@@ -1,15 +0,0 @@
1
- # This migration comes from acts_as_taggable_on_engine (originally 3)
2
- class AddTaggingsCounterCacheToTags < ActiveRecord::Migration
3
- def self.up
4
- add_column :tags, :taggings_count, :integer, default: 0
5
-
6
- ActsAsTaggableOn::Tag.reset_column_information
7
- ActsAsTaggableOn::Tag.find_each do |tag|
8
- ActsAsTaggableOn::Tag.reset_counters(tag.id, :taggings)
9
- end
10
- end
11
-
12
- def self.down
13
- remove_column :tags, :taggings_count
14
- end
15
- end
@@ -1,10 +0,0 @@
1
- # This migration comes from acts_as_taggable_on_engine (originally 4)
2
- class AddMissingTaggableIndex < ActiveRecord::Migration
3
- def self.up
4
- add_index :taggings, [:taggable_id, :taggable_type, :context]
5
- end
6
-
7
- def self.down
8
- remove_index :taggings, [:taggable_id, :taggable_type, :context]
9
- end
10
- end
@@ -1,7 +0,0 @@
1
- class CreateDummyModel < ActiveRecord::Migration
2
- def change
3
- create_table :dummy_models do |t|
4
- t.string :data
5
- end
6
- end
7
- end
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20150608204610_add_parent_element_id_to_alchemy_elements.rb
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20150729151825_add_link_text_to_alchemy_essence_files.rb
@@ -1 +0,0 @@
1
- ../../../../db/migrate/20150906195818_add_locale_to_alchemy_languages.rb
@@ -1,326 +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 that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20150906195818) do
15
-
16
- create_table "alchemy_attachments", force: :cascade do |t|
17
- t.string "name"
18
- t.string "file_name"
19
- t.string "file_mime_type"
20
- t.integer "file_size"
21
- t.integer "creator_id"
22
- t.integer "updater_id"
23
- t.datetime "created_at", null: false
24
- t.datetime "updated_at", null: false
25
- t.text "cached_tag_list"
26
- t.string "file_uid"
27
- end
28
-
29
- add_index "alchemy_attachments", ["file_uid"], name: "index_alchemy_attachments_on_file_uid"
30
-
31
- create_table "alchemy_cells", force: :cascade do |t|
32
- t.integer "page_id"
33
- t.string "name"
34
- t.datetime "created_at", null: false
35
- t.datetime "updated_at", null: false
36
- end
37
-
38
- create_table "alchemy_contents", force: :cascade do |t|
39
- t.string "name"
40
- t.string "essence_type"
41
- t.integer "essence_id"
42
- t.integer "element_id"
43
- t.integer "position"
44
- t.datetime "created_at", null: false
45
- t.datetime "updated_at", null: false
46
- t.integer "creator_id"
47
- t.integer "updater_id"
48
- end
49
-
50
- add_index "alchemy_contents", ["element_id", "position"], name: "index_contents_on_element_id_and_position"
51
-
52
- create_table "alchemy_elements", force: :cascade do |t|
53
- t.string "name"
54
- t.integer "position"
55
- t.integer "page_id"
56
- t.boolean "public", default: true
57
- t.boolean "folded", default: false
58
- t.boolean "unique", default: false
59
- t.datetime "created_at", null: false
60
- t.datetime "updated_at", null: false
61
- t.integer "creator_id"
62
- t.integer "updater_id"
63
- t.integer "cell_id"
64
- t.text "cached_tag_list"
65
- t.integer "parent_element_id"
66
- end
67
-
68
- add_index "alchemy_elements", ["page_id", "parent_element_id"], name: "index_alchemy_elements_on_page_id_and_parent_element_id"
69
- add_index "alchemy_elements", ["page_id", "position"], name: "index_elements_on_page_id_and_position"
70
-
71
- create_table "alchemy_elements_alchemy_pages", id: false, force: :cascade do |t|
72
- t.integer "element_id"
73
- t.integer "page_id"
74
- end
75
-
76
- create_table "alchemy_essence_booleans", force: :cascade do |t|
77
- t.boolean "value"
78
- t.datetime "created_at", null: false
79
- t.datetime "updated_at", null: false
80
- t.integer "creator_id"
81
- t.integer "updater_id"
82
- end
83
-
84
- add_index "alchemy_essence_booleans", ["value"], name: "index_alchemy_essence_booleans_on_value"
85
-
86
- create_table "alchemy_essence_dates", force: :cascade do |t|
87
- t.datetime "date"
88
- t.integer "creator_id"
89
- t.integer "updater_id"
90
- t.datetime "created_at", null: false
91
- t.datetime "updated_at", null: false
92
- end
93
-
94
- create_table "alchemy_essence_files", force: :cascade do |t|
95
- t.integer "attachment_id"
96
- t.string "title"
97
- t.string "css_class"
98
- t.integer "creator_id"
99
- t.integer "updater_id"
100
- t.datetime "created_at", null: false
101
- t.datetime "updated_at", null: false
102
- t.string "link_text"
103
- end
104
-
105
- create_table "alchemy_essence_htmls", force: :cascade do |t|
106
- t.text "source"
107
- t.integer "creator_id"
108
- t.integer "updater_id"
109
- t.datetime "created_at", null: false
110
- t.datetime "updated_at", null: false
111
- end
112
-
113
- create_table "alchemy_essence_links", force: :cascade do |t|
114
- t.string "link"
115
- t.string "link_title"
116
- t.string "link_target"
117
- t.string "link_class_name"
118
- t.datetime "created_at", null: false
119
- t.datetime "updated_at", null: false
120
- t.integer "creator_id"
121
- t.integer "updater_id"
122
- end
123
-
124
- create_table "alchemy_essence_pictures", force: :cascade do |t|
125
- t.integer "picture_id"
126
- t.string "caption"
127
- t.string "title"
128
- t.string "alt_tag"
129
- t.string "link"
130
- t.string "link_class_name"
131
- t.string "link_title"
132
- t.string "css_class"
133
- t.string "link_target"
134
- t.integer "creator_id"
135
- t.integer "updater_id"
136
- t.datetime "created_at", null: false
137
- t.datetime "updated_at", null: false
138
- t.string "crop_from"
139
- t.string "crop_size"
140
- t.string "render_size"
141
- end
142
-
143
- create_table "alchemy_essence_richtexts", force: :cascade do |t|
144
- t.text "body"
145
- t.text "stripped_body"
146
- t.boolean "public"
147
- t.integer "creator_id"
148
- t.integer "updater_id"
149
- t.datetime "created_at", null: false
150
- t.datetime "updated_at", null: false
151
- end
152
-
153
- create_table "alchemy_essence_selects", force: :cascade do |t|
154
- t.string "value"
155
- t.datetime "created_at", null: false
156
- t.datetime "updated_at", null: false
157
- t.integer "creator_id"
158
- t.integer "updater_id"
159
- end
160
-
161
- add_index "alchemy_essence_selects", ["value"], name: "index_alchemy_essence_selects_on_value"
162
-
163
- create_table "alchemy_essence_texts", force: :cascade do |t|
164
- t.text "body"
165
- t.string "link"
166
- t.string "link_title"
167
- t.string "link_class_name"
168
- t.boolean "public", default: false
169
- t.string "link_target"
170
- t.integer "creator_id"
171
- t.integer "updater_id"
172
- t.datetime "created_at", null: false
173
- t.datetime "updated_at", null: false
174
- end
175
-
176
- create_table "alchemy_folded_pages", force: :cascade do |t|
177
- t.integer "page_id"
178
- t.integer "user_id"
179
- t.boolean "folded", default: false
180
- end
181
-
182
- create_table "alchemy_languages", force: :cascade do |t|
183
- t.string "name"
184
- t.string "language_code"
185
- t.string "frontpage_name"
186
- t.string "page_layout", default: "intro"
187
- t.boolean "public", default: false
188
- t.datetime "created_at", null: false
189
- t.datetime "updated_at", null: false
190
- t.integer "creator_id"
191
- t.integer "updater_id"
192
- t.boolean "default", default: false
193
- t.string "country_code", default: "", null: false
194
- t.integer "site_id"
195
- t.string "locale"
196
- end
197
-
198
- add_index "alchemy_languages", ["language_code", "country_code"], name: "index_alchemy_languages_on_language_code_and_country_code"
199
- add_index "alchemy_languages", ["language_code"], name: "index_alchemy_languages_on_language_code"
200
- add_index "alchemy_languages", ["site_id"], name: "index_alchemy_languages_on_site_id"
201
-
202
- create_table "alchemy_legacy_page_urls", force: :cascade do |t|
203
- t.string "urlname", null: false
204
- t.integer "page_id", null: false
205
- t.datetime "created_at", null: false
206
- t.datetime "updated_at", null: false
207
- end
208
-
209
- add_index "alchemy_legacy_page_urls", ["urlname"], name: "index_alchemy_legacy_page_urls_on_urlname"
210
-
211
- create_table "alchemy_pages", force: :cascade do |t|
212
- t.string "name"
213
- t.string "urlname"
214
- t.string "title"
215
- t.string "language_code"
216
- t.boolean "language_root"
217
- t.string "page_layout"
218
- t.text "meta_keywords"
219
- t.text "meta_description"
220
- t.integer "lft"
221
- t.integer "rgt"
222
- t.integer "parent_id"
223
- t.integer "depth"
224
- t.boolean "visible", default: false
225
- t.boolean "public", default: false
226
- t.boolean "locked", default: false
227
- t.integer "locked_by"
228
- t.boolean "restricted", default: false
229
- t.boolean "robot_index", default: true
230
- t.boolean "robot_follow", default: true
231
- t.boolean "sitemap", default: true
232
- t.boolean "layoutpage", default: false
233
- t.datetime "created_at", null: false
234
- t.datetime "updated_at", null: false
235
- t.integer "creator_id"
236
- t.integer "updater_id"
237
- t.integer "language_id"
238
- t.text "cached_tag_list"
239
- t.datetime "published_at"
240
- end
241
-
242
- add_index "alchemy_pages", ["language_id"], name: "index_pages_on_language_id"
243
- add_index "alchemy_pages", ["parent_id", "lft"], name: "index_pages_on_parent_id_and_lft"
244
- add_index "alchemy_pages", ["urlname"], name: "index_pages_on_urlname"
245
-
246
- create_table "alchemy_pictures", force: :cascade do |t|
247
- t.string "name"
248
- t.string "image_file_name"
249
- t.integer "image_file_width"
250
- t.integer "image_file_height"
251
- t.datetime "created_at", null: false
252
- t.datetime "updated_at", null: false
253
- t.integer "creator_id"
254
- t.integer "updater_id"
255
- t.string "upload_hash"
256
- t.text "cached_tag_list"
257
- t.string "image_file_uid"
258
- t.integer "image_file_size"
259
- end
260
-
261
- create_table "alchemy_sites", force: :cascade do |t|
262
- t.string "host"
263
- t.string "name"
264
- t.datetime "created_at", null: false
265
- t.datetime "updated_at", null: false
266
- t.boolean "public", default: false
267
- t.text "aliases"
268
- t.boolean "redirect_to_primary_host"
269
- end
270
-
271
- add_index "alchemy_sites", ["host", "public"], name: "alchemy_sites_public_hosts_idx"
272
- add_index "alchemy_sites", ["host"], name: "index_alchemy_sites_on_host"
273
-
274
- create_table "dummy_models", force: :cascade do |t|
275
- t.string "data"
276
- end
277
-
278
- create_table "dummy_users", force: :cascade do |t|
279
- t.string "email"
280
- t.string "password"
281
- end
282
-
283
- add_index "dummy_users", ["email"], name: "index_dummy_users_on_email"
284
-
285
- create_table "events", force: :cascade do |t|
286
- t.string "name"
287
- t.string "hidden_name"
288
- t.datetime "starts_at"
289
- t.datetime "ends_at"
290
- t.time "lunch_starts_at"
291
- t.time "lunch_ends_at"
292
- t.text "description"
293
- t.decimal "entrance_fee", precision: 6, scale: 2
294
- t.boolean "published"
295
- t.integer "location_id"
296
- t.datetime "created_at", null: false
297
- t.datetime "updated_at", null: false
298
- end
299
-
300
- create_table "locations", force: :cascade do |t|
301
- t.string "name"
302
- t.datetime "created_at"
303
- t.datetime "updated_at"
304
- end
305
-
306
- create_table "taggings", force: :cascade do |t|
307
- t.integer "tag_id"
308
- t.integer "taggable_id"
309
- t.string "taggable_type"
310
- t.integer "tagger_id"
311
- t.string "tagger_type"
312
- t.string "context", limit: 128
313
- t.datetime "created_at"
314
- end
315
-
316
- add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true
317
- add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
318
-
319
- create_table "tags", force: :cascade do |t|
320
- t.string "name"
321
- t.integer "taggings_count", default: 0
322
- end
323
-
324
- add_index "tags", ["name"], name: "index_tags_on_name", unique: true
325
-
326
- end
@@ -1 +0,0 @@
1
- Alchemy::Seeder.seed!