alchemy_crm 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. data/.gitignore +22 -0
  2. data/.travis.yml +12 -0
  3. data/Gemfile +21 -0
  4. data/Guardfile +13 -0
  5. data/LICENSE +24 -0
  6. data/README.md +82 -0
  7. data/Rakefile +27 -0
  8. data/alchemy_crm.gemspec +31 -0
  9. data/app/assets/images/.DS_Store +0 -0
  10. data/app/assets/images/alchemy_crm/.DS_Store +0 -0
  11. data/app/assets/images/alchemy_crm/contact-icons.png +0 -0
  12. data/app/assets/images/alchemy_crm/fill_content.gif +0 -0
  13. data/app/assets/images/alchemy_crm/group-icons.png +0 -0
  14. data/app/assets/images/alchemy_crm/mailing-icons.png +0 -0
  15. data/app/assets/images/alchemy_crm/module_icon.png +0 -0
  16. data/app/assets/images/alchemy_crm/newsletter-icons.png +0 -0
  17. data/app/assets/images/alchemy_crm/statistic.png +0 -0
  18. data/app/assets/images/alchemy_crm/tag-icons.png +0 -0
  19. data/app/assets/javascripts/alchemy_crm/alchemy_crm.base.js +65 -0
  20. data/app/assets/javascripts/alchemy_crm/scripts.js +2 -0
  21. data/app/assets/stylesheets/alchemy_crm/base.css.scss +473 -0
  22. data/app/assets/stylesheets/alchemy_crm/styles.css +3 -0
  23. data/app/controllers/alchemy_crm/admin/base_controller.rb +7 -0
  24. data/app/controllers/alchemy_crm/admin/contact_groups_controller.rb +23 -0
  25. data/app/controllers/alchemy_crm/admin/contacts_controller.rb +112 -0
  26. data/app/controllers/alchemy_crm/admin/deliveries_controller.rb +80 -0
  27. data/app/controllers/alchemy_crm/admin/elements_controller_extension.rb +32 -0
  28. data/app/controllers/alchemy_crm/admin/mailings_controller.rb +47 -0
  29. data/app/controllers/alchemy_crm/admin/newsletters_controller.rb +24 -0
  30. data/app/controllers/alchemy_crm/admin/tags_controller.rb +62 -0
  31. data/app/controllers/alchemy_crm/base_controller.rb +5 -0
  32. data/app/controllers/alchemy_crm/contacts_controller.rb +103 -0
  33. data/app/controllers/alchemy_crm/mailings_controller.rb +20 -0
  34. data/app/controllers/alchemy_crm/recipients_controller.rb +35 -0
  35. data/app/controllers/alchemy_crm/subscriptions_controller.rb +57 -0
  36. data/app/helpers/alchemy/pages_helper_extension.rb +18 -0
  37. data/app/helpers/alchemy_crm/admin/base_helper.rb +12 -0
  38. data/app/helpers/alchemy_crm/mailings_helper.rb +190 -0
  39. data/app/mailers/alchemy_crm/bounce_receiver.rb +13 -0
  40. data/app/mailers/alchemy_crm/contacts_mailer.rb +26 -0
  41. data/app/mailers/alchemy_crm/mailings_mailer.rb +48 -0
  42. data/app/mailers/alchemy_crm/subscriptions_mailer.rb +17 -0
  43. data/app/models/alchemy/essence_element_teaser.rb +19 -0
  44. data/app/models/alchemy_crm/contact.rb +264 -0
  45. data/app/models/alchemy_crm/contact_group.rb +26 -0
  46. data/app/models/alchemy_crm/contact_group_filter.rb +26 -0
  47. data/app/models/alchemy_crm/delivery.rb +57 -0
  48. data/app/models/alchemy_crm/element_extension.rb +28 -0
  49. data/app/models/alchemy_crm/mailing.rb +93 -0
  50. data/app/models/alchemy_crm/newsletter.rb +48 -0
  51. data/app/models/alchemy_crm/reaction.rb +9 -0
  52. data/app/models/alchemy_crm/recipient.rb +48 -0
  53. data/app/models/alchemy_crm/subscription.rb +8 -0
  54. data/app/views/alchemy/admin/elements/_view_not_found.text.erb +0 -0
  55. data/app/views/alchemy/admin/elements/fill.js.erb +13 -0
  56. data/app/views/alchemy/admin/elements/link.js.erb +1 -0
  57. data/app/views/alchemy/elements/_newsletter_article_editor.html.erb +4 -0
  58. data/app/views/alchemy/elements/_newsletter_article_view.html.erb +16 -0
  59. data/app/views/alchemy/elements/_newsletter_article_view.text.erb +5 -0
  60. data/app/views/alchemy/elements/_newsletter_greeting_editor.html.erb +3 -0
  61. data/app/views/alchemy/elements/_newsletter_greeting_view.html.erb +11 -0
  62. data/app/views/alchemy/elements/_newsletter_greeting_view.text.erb +6 -0
  63. data/app/views/alchemy/elements/_newsletter_signout_form_editor.html.erb +3 -0
  64. data/app/views/alchemy/elements/_newsletter_signout_form_view.html.erb +32 -0
  65. data/app/views/alchemy/elements/_newsletter_signout_mail_editor.html.erb +4 -0
  66. data/app/views/alchemy/elements/_newsletter_signup_form_editor.html.erb +6 -0
  67. data/app/views/alchemy/elements/_newsletter_signup_form_view.html.erb +78 -0
  68. data/app/views/alchemy/elements/_newsletter_signup_mail_editor.html.erb +4 -0
  69. data/app/views/alchemy/essences/_essence_date_view.text.erb +3 -0
  70. data/app/views/alchemy/essences/_essence_element_teaser_editor.html.erb +31 -0
  71. data/app/views/alchemy/essences/_essence_element_teaser_view.html.erb +1 -0
  72. data/app/views/alchemy/essences/_essence_element_teaser_view.text.erb +3 -0
  73. data/app/views/alchemy/essences/_essence_richtext_view.text.erb +1 -0
  74. data/app/views/alchemy/essences/_essence_text_view.text.erb +1 -0
  75. data/app/views/alchemy/newsletter_layouts/_standard.html.erb +39 -0
  76. data/app/views/alchemy/newsletter_layouts/_standard.text.erb +5 -0
  77. data/app/views/alchemy_crm/admin/contact_groups/_contact_group.html.erb +32 -0
  78. data/app/views/alchemy_crm/admin/contact_groups/_filter.html.erb +30 -0
  79. data/app/views/alchemy_crm/admin/contact_groups/_form.html.erb +47 -0
  80. data/app/views/alchemy_crm/admin/contact_groups/_tag.html.erb +6 -0
  81. data/app/views/alchemy_crm/admin/contact_groups/add_filter.js.erb +9 -0
  82. data/app/views/alchemy_crm/admin/contact_groups/destroy.rjs +1 -0
  83. data/app/views/alchemy_crm/admin/contact_groups/edit.html.erb +1 -0
  84. data/app/views/alchemy_crm/admin/contact_groups/index.html.erb +41 -0
  85. data/app/views/alchemy_crm/admin/contact_groups/new.html.erb +1 -0
  86. data/app/views/alchemy_crm/admin/contacts/_contact.html.erb +44 -0
  87. data/app/views/alchemy_crm/admin/contacts/_form.html.erb +86 -0
  88. data/app/views/alchemy_crm/admin/contacts/destroy.rjs +1 -0
  89. data/app/views/alchemy_crm/admin/contacts/edit.html.erb +1 -0
  90. data/app/views/alchemy_crm/admin/contacts/import.html.erb +33 -0
  91. data/app/views/alchemy_crm/admin/contacts/import.js.erb +2 -0
  92. data/app/views/alchemy_crm/admin/contacts/index.html.erb +51 -0
  93. data/app/views/alchemy_crm/admin/contacts/new.html.erb +1 -0
  94. data/app/views/alchemy_crm/admin/contacts/vcf_import_result.html.erb +49 -0
  95. data/app/views/alchemy_crm/admin/deliveries/_delivery.html.erb +41 -0
  96. data/app/views/alchemy_crm/admin/deliveries/_form.html.erb +65 -0
  97. data/app/views/alchemy_crm/admin/deliveries/_recipient.html.erb +40 -0
  98. data/app/views/alchemy_crm/admin/deliveries/edit.html.erb +1 -0
  99. data/app/views/alchemy_crm/admin/deliveries/index.html.erb +29 -0
  100. data/app/views/alchemy_crm/admin/deliveries/new.html.erb +1 -0
  101. data/app/views/alchemy_crm/admin/deliveries/show.html.erb +66 -0
  102. data/app/views/alchemy_crm/admin/elements/link.rjs +4 -0
  103. data/app/views/alchemy_crm/admin/elements/teasables.html.erb +57 -0
  104. data/app/views/alchemy_crm/admin/mailings/_form.html.erb +43 -0
  105. data/app/views/alchemy_crm/admin/mailings/_mailing.html.erb +75 -0
  106. data/app/views/alchemy_crm/admin/mailings/edit.html.erb +1 -0
  107. data/app/views/alchemy_crm/admin/mailings/edit_content.html.erb +194 -0
  108. data/app/views/alchemy_crm/admin/mailings/import_result.html.erb +37 -0
  109. data/app/views/alchemy_crm/admin/mailings/index.html.erb +39 -0
  110. data/app/views/alchemy_crm/admin/mailings/new.html.erb +1 -0
  111. data/app/views/alchemy_crm/admin/mailings/show.html.erb +1 -0
  112. data/app/views/alchemy_crm/admin/mailings/show.text.erb +1 -0
  113. data/app/views/alchemy_crm/admin/newsletters/_form.html.erb +54 -0
  114. data/app/views/alchemy_crm/admin/newsletters/_newsletter.html.erb +42 -0
  115. data/app/views/alchemy_crm/admin/newsletters/_tag_with_radiobutton.html.erb +7 -0
  116. data/app/views/alchemy_crm/admin/newsletters/destroy.rjs +1 -0
  117. data/app/views/alchemy_crm/admin/newsletters/edit.html.erb +1 -0
  118. data/app/views/alchemy_crm/admin/newsletters/index.html.erb +42 -0
  119. data/app/views/alchemy_crm/admin/newsletters/new.html.erb +10 -0
  120. data/app/views/alchemy_crm/admin/tags/_radio_tag.html.erb +6 -0
  121. data/app/views/alchemy_crm/admin/tags/_tag.html.erb +32 -0
  122. data/app/views/alchemy_crm/admin/tags/edit.html.erb +40 -0
  123. data/app/views/alchemy_crm/admin/tags/index.html.erb +35 -0
  124. data/app/views/alchemy_crm/admin/tags/new.html.erb +16 -0
  125. data/app/views/alchemy_crm/contacts_mailer/signout_mail.html.erb +8 -0
  126. data/app/views/alchemy_crm/contacts_mailer/signout_mail.text.erb +4 -0
  127. data/app/views/alchemy_crm/contacts_mailer/signup_mail.html.erb +11 -0
  128. data/app/views/alchemy_crm/contacts_mailer/signup_mail.text.erb +4 -0
  129. data/app/views/alchemy_crm/mailings/show.html.erb +1 -0
  130. data/app/views/alchemy_crm/mailings_mailer/verification_mail.html.erb +11 -0
  131. data/app/views/alchemy_crm/subscriptions/index.html.erb +23 -0
  132. data/app/views/alchemy_crm/subscriptions_mailer/overview_mail.html.erb +27 -0
  133. data/app/views/alchemy_crm/subscriptions_mailer/overview_mail.text.erb +19 -0
  134. data/app/views/csv_magic/import_errors.html.erb +44 -0
  135. data/app/views/csv_magic/mapper.html.erb +62 -0
  136. data/app/views/layouts/alchemy_crm/mailings.html.erb +212 -0
  137. data/app/views/layouts/alchemy_crm/mailings.text.erb +3 -0
  138. data/config/alchemy_crm.config.yml +21 -0
  139. data/config/authorization_rules.rb +37 -0
  140. data/config/initializers/assets.rb +4 -0
  141. data/config/initializers/delayed_job.rb +6 -0
  142. data/config/locales/alchemy.de.yml +55 -0
  143. data/config/locales/alchemy.en.yml +52 -0
  144. data/config/locales/alchemy_crm.de.yml +196 -0
  145. data/config/locales/alchemy_crm.en.yml +53 -0
  146. data/config/locales/localized_country_select.de.rb +268 -0
  147. data/config/locales/localized_country_select.en.rb +282 -0
  148. data/config/module_definition.yml +30 -0
  149. data/config/routes.rb +71 -0
  150. data/db/migrate/20100708220434_create_mailings.rb +19 -0
  151. data/db/migrate/20100708220534_create_contacts.rb +27 -0
  152. data/db/migrate/20100708220812_create_contact_groups.rb +13 -0
  153. data/db/migrate/20100708221009_create_newsletters.rb +15 -0
  154. data/db/migrate/20100708221319_create_sent_mailings.rb +15 -0
  155. data/db/migrate/20100708221529_create_recipients.rb +21 -0
  156. data/db/migrate/20100708222620_acts_as_taggable_migration.rb +28 -0
  157. data/db/migrate/20100708223324_create_contact_group_filters.rb +17 -0
  158. data/db/migrate/20100708223727_create_newsletter_subscriptions.rb +14 -0
  159. data/db/migrate/20100708223922_create_essence_element_teasers.rb +15 -0
  160. data/db/migrate/20100714172207_create_contact_groups_newsletters.rb +12 -0
  161. data/db/migrate/20100927152601_create_reactions.rb +14 -0
  162. data/db/migrate/20111028091722_acts_as_taggable_on_migration.rb +15 -0
  163. data/db/migrate/20111028200710_add_counter_cache_columns_for_tags.rb +11 -0
  164. data/db/migrate/20111030204931_create_delayed_jobs.rb +21 -0
  165. data/db/migrate/20111104105854_add_deliver_at_to_sent_mailings.rb +9 -0
  166. data/db/migrate/20111104125306_remove_sent_mailing_pdf_id_from_sent_mailings.rb +9 -0
  167. data/db/migrate/20111104131912_add_delivered_at_to_sent_mailings.rb +9 -0
  168. data/db/migrate/20111124145923_namespace_alchemy_crm_models.rb +17 -0
  169. data/db/migrate/20120306115555_add_disabled_to_alchemy_crm_contacts.rb +5 -0
  170. data/db/migrate/20120307160721_rename_alchemy_crm_recipients_sent_mailing_id.rb +5 -0
  171. data/db/migrate/20120315113522_add_url_to_alchemy_crm_reactions.rb +5 -0
  172. data/db/migrate/20120316161333_add_sha1_and_salt_to_alchemy_crm_recipients.rb +6 -0
  173. data/db/migrate/20120320103412_add_indexes_to_alchemy_crm_sha1_columns.rb +7 -0
  174. data/db/migrate/20120321105455_add_queue_to_delayed_jobs.rb +9 -0
  175. data/db/migrate/20120327174301_add_more_indexes_to_alchemy_crm_tables.rb +12 -0
  176. data/lib/alchemy_crm.rb +18 -0
  177. data/lib/alchemy_crm/bounced_delivery.rb +46 -0
  178. data/lib/alchemy_crm/config.rb +28 -0
  179. data/lib/alchemy_crm/engine.rb +40 -0
  180. data/lib/alchemy_crm/i18n_helpers.rb +35 -0
  181. data/lib/alchemy_crm/newsletter_layout.rb +40 -0
  182. data/lib/alchemy_crm/seeder.rb +30 -0
  183. data/lib/alchemy_crm/version.rb +3 -0
  184. data/lib/generators/alchemy_crm/scaffold/files/_standard.html.erb +1 -0
  185. data/lib/generators/alchemy_crm/scaffold/files/_standard.text.erb +1 -0
  186. data/lib/generators/alchemy_crm/scaffold/files/elements.yml +51 -0
  187. data/lib/generators/alchemy_crm/scaffold/files/newsletter_layouts.yml +3 -0
  188. data/lib/generators/alchemy_crm/scaffold/files/newsletters.html.erb +22 -0
  189. data/lib/generators/alchemy_crm/scaffold/files/newsletters.text.erb +4 -0
  190. data/lib/generators/alchemy_crm/scaffold/files/page_layouts.yml +19 -0
  191. data/lib/generators/alchemy_crm/scaffold/scaffold_generator.rb +26 -0
  192. data/lib/tasks/alchemy_crm.rake +28 -0
  193. data/lib/tasks/routes.rake +29 -0
  194. data/rails/init.rb +1 -0
  195. data/recipes/alchemy-mailings-capistrano-tasks.rb +12 -0
  196. data/spec/alchemy_mailings_spec.rb +7 -0
  197. data/spec/config_spec.rb +28 -0
  198. data/spec/controllers/alchemy_crm/contacts_controller_spec.rb +210 -0
  199. data/spec/controllers/alchemy_crm/mailings_controller_spec.rb +89 -0
  200. data/spec/controllers/alchemy_crm/recipients_controller_spec.rb +155 -0
  201. data/spec/dummy/Rakefile +7 -0
  202. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  203. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  204. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  205. data/spec/dummy/config.ru +4 -0
  206. data/spec/dummy/config/alchemy/config.yml +142 -0
  207. data/spec/dummy/config/alchemy/elements.yml +79 -0
  208. data/spec/dummy/config/alchemy/newsletter_layouts.yml +4 -0
  209. data/spec/dummy/config/alchemy/page_layouts.yml +55 -0
  210. data/spec/dummy/config/application.rb +43 -0
  211. data/spec/dummy/config/boot.rb +10 -0
  212. data/spec/dummy/config/database.yml +22 -0
  213. data/spec/dummy/config/environment.rb +5 -0
  214. data/spec/dummy/config/environments/development.rb +30 -0
  215. data/spec/dummy/config/environments/production.rb +60 -0
  216. data/spec/dummy/config/environments/test.rb +39 -0
  217. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  218. data/spec/dummy/config/initializers/inflections.rb +10 -0
  219. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  220. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  221. data/spec/dummy/config/initializers/session_store.rb +8 -0
  222. data/spec/dummy/config/locales/en.yml +5 -0
  223. data/spec/dummy/config/routes.rb +4 -0
  224. data/spec/dummy/db/schema.rb +452 -0
  225. data/spec/dummy/public/404.html +26 -0
  226. data/spec/dummy/public/422.html +26 -0
  227. data/spec/dummy/public/500.html +26 -0
  228. data/spec/dummy/public/favicon.ico +0 -0
  229. data/spec/dummy/script/rails +6 -0
  230. data/spec/helpers/alchemy_crm/mailings_helper_spec.rb +169 -0
  231. data/spec/mailers/alchemy_crm/contacts_mailer_spec.rb +88 -0
  232. data/spec/mailers/alchemy_crm/mailings_mailer_spec.rb +42 -0
  233. data/spec/models/alchemy_crm/contact_group_spec.rb +41 -0
  234. data/spec/models/alchemy_crm/contact_spec.rb +108 -0
  235. data/spec/models/alchemy_crm/delivery_spec.rb +55 -0
  236. data/spec/models/alchemy_crm/mailing_spec.rb +63 -0
  237. data/spec/models/alchemy_crm/newsletter_spec.rb +45 -0
  238. data/spec/spec_helper.rb +58 -0
  239. data/vendor/assets/javascripts/autocomplete-rails.js +16 -0
  240. metadata +438 -0
@@ -0,0 +1,4 @@
1
+ # Newsletter page layouts
2
+ - name: standard
3
+ elements: [newsletter_greeting, newsletter_article]
4
+ autogenerate: [newsletter_greeting]
@@ -0,0 +1,55 @@
1
+ # == This file defines the page_layouts for new pages.
2
+ #
3
+ # Please make your own page_layouts for your app in your own Rails.root/config/alchemy/page_layouts.yml file.
4
+ #
5
+ # === DSL:
6
+ # - name: String # The name of the layout used for views and inside the database. You can render a layout with the render_page_layout(name) helper.
7
+ # unique: Bool # Pass true and the user can only choose this layout once inside a language tree.
8
+ # hide: Bool # Pass true to hide this layout from the user.
9
+ # elements: Array # A list of element names that can be placed on this layout i.e. [text, picture]. Elements are defined inside the elements.yml file.
10
+ # autogenerate: Array # A list of element names that are autogenerated after creating the Page.
11
+ # layoutpage: Bool # Layoutpages are outside the normal pagetree and can be used to place "global" language independent Elements.
12
+ # cache: Bool # Pass false to disable the caching for this pages.
13
+ # feed: Bool # Pass true to enable a RSS feed of news elements from this page.
14
+ # redirects_to_external: Bool # Pass true to disable normal page rendering and redirect to a external page instead.
15
+ # controller: controller_name # Controller to use instead of the default PagesController
16
+ # action: action_name # Controllers action to use instead of the default PagesController#show
17
+ #
18
+ # === Translate page layout names
19
+ #
20
+ # Page layout names are passed through the I18n library. So you can translate them in your config/locales language yml file.
21
+ #
22
+ # Example:
23
+ #
24
+ # de:
25
+ # alchemy:
26
+ # page_layout_names:
27
+ # contact: Kontakt
28
+ # search: Suche
29
+ #
30
+
31
+ # These page layouts are added by the Alchemy CRM module.
32
+
33
+ - name: newsletter_signup
34
+ unique: true
35
+ cache: false
36
+ elements:
37
+ - newsletter_signup_form
38
+ autogenerate:
39
+ - newsletter_signup_form
40
+ - name: newsletter_signout
41
+ unique: true
42
+ cache: false
43
+ elements:
44
+ - newsletter_signout_form
45
+ autogenerate:
46
+ - newsletter_signout_form
47
+ - name: newsletter_mails
48
+ unique: true
49
+ layoutpage: true
50
+ elements:
51
+ - newsletter_signup_mail
52
+ - newsletter_signout_mail
53
+ autogenerate:
54
+ - newsletter_signup_mail
55
+ - newsletter_signout_mail
@@ -0,0 +1,43 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require "alchemy_crm"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Custom directories with classes and modules you want to be autoloadable.
15
+ # config.autoload_paths += %W(#{config.root}/extras)
16
+
17
+ # Only load the plugins named here, in the order given (default is alphabetical).
18
+ # :all can be used as a placeholder for all plugins not explicitly named.
19
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
+
21
+ # Activate observers that should always be running.
22
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
+
24
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
+ # config.time_zone = 'Central Time (US & Canada)'
27
+
28
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
+
31
+ # Configure the default encoding used in templates for Ruby 1.9.
32
+ config.encoding = "utf-8"
33
+
34
+ # Configure sensitive parameters which will be filtered from the log file.
35
+ config.filter_parameters += [:password]
36
+
37
+ # Enable the asset pipeline
38
+ config.assets.enabled = true
39
+
40
+ # Version of your assets, change this if you want to expire all your assets
41
+ config.assets.version = '1.0'
42
+ end
43
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,30 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+
28
+ # Expands the lines which load the assets
29
+ config.assets.debug = true
30
+ end
@@ -0,0 +1,60 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to Rails.root.join("public/assets")
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Use a different logger for distributed setups
37
+ # config.logger = SyslogLogger.new
38
+
39
+ # Use a different cache store in production
40
+ # config.cache_store = :mem_cache_store
41
+
42
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
+ # config.action_controller.asset_host = "http://assets.example.com"
44
+
45
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
+ # config.assets.precompile += %w( search.js )
47
+
48
+ # Disable delivery errors, bad email addresses will be ignored
49
+ # config.action_mailer.raise_delivery_errors = false
50
+
51
+ # Enable threaded mode
52
+ # config.threadsafe!
53
+
54
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
+ # the I18n.default_locale when a translation can not be found)
56
+ config.i18n.fallbacks = true
57
+
58
+ # Send deprecation notices to registered listeners
59
+ config.active_support.deprecation = :notify
60
+ end
@@ -0,0 +1,39 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = false
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
33
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
34
+ # like if you have constraints or database-specific column types
35
+ # config.active_record.schema_format = :sql
36
+
37
+ # Print deprecation notices to the stderr
38
+ config.active_support.deprecation = :stderr
39
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'e6d7c8e446f82800388e5411a7811aba3da26072db7f8d34cb3db64173041f9427918b3911060008e5ef28282507c9a6f820614fcc34619e063001d608efa3c6'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Dummy::Application.routes.draw do
2
+ mount AlchemyCrm::Engine => '/newsletter'
3
+ mount Alchemy::Engine => '/'
4
+ end
@@ -0,0 +1,452 @@
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 => 20120327174339) do
15
+
16
+ create_table "alchemy_attachments", :force => true do |t|
17
+ t.string "name"
18
+ t.string "filename"
19
+ t.string "content_type"
20
+ t.integer "size"
21
+ t.integer "creator_id"
22
+ t.integer "updater_id"
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ create_table "alchemy_cells", :force => true do |t|
28
+ t.integer "page_id"
29
+ t.string "name"
30
+ t.datetime "created_at"
31
+ t.datetime "updated_at"
32
+ end
33
+
34
+ create_table "alchemy_contact_groups_newsletters", :id => false, :force => true do |t|
35
+ t.integer "contact_group_id"
36
+ t.integer "newsletter_id"
37
+ end
38
+
39
+ add_index "alchemy_contact_groups_newsletters", ["contact_group_id", "newsletter_id"], :name => "contact_group_newsletter_index", :unique => true
40
+
41
+ create_table "alchemy_contents", :force => true do |t|
42
+ t.string "name"
43
+ t.string "essence_type"
44
+ t.integer "essence_id"
45
+ t.integer "element_id"
46
+ t.integer "position"
47
+ t.datetime "created_at"
48
+ t.datetime "updated_at"
49
+ t.integer "creator_id"
50
+ t.integer "updater_id"
51
+ end
52
+
53
+ add_index "alchemy_contents", ["element_id", "position"], :name => "index_contents_on_element_id_and_position"
54
+
55
+ create_table "alchemy_crm_contact_group_filters", :force => true do |t|
56
+ t.string "column"
57
+ t.string "value"
58
+ t.string "operator"
59
+ t.integer "contact_group_id"
60
+ t.datetime "created_at"
61
+ t.datetime "updated_at"
62
+ t.integer "creator_id"
63
+ t.integer "updater_id"
64
+ end
65
+
66
+ create_table "alchemy_crm_contact_groups", :force => true do |t|
67
+ t.string "name"
68
+ t.string "string"
69
+ t.datetime "created_at"
70
+ t.datetime "updated_at"
71
+ t.integer "creator_id"
72
+ t.integer "updater_id"
73
+ t.text "cached_contact_tag_list"
74
+ end
75
+
76
+ create_table "alchemy_crm_contacts", :force => true do |t|
77
+ t.string "title"
78
+ t.string "salutation"
79
+ t.string "firstname"
80
+ t.string "lastname"
81
+ t.string "email"
82
+ t.string "phone"
83
+ t.string "mobile"
84
+ t.string "address"
85
+ t.string "zip"
86
+ t.string "city"
87
+ t.string "country"
88
+ t.string "organisation"
89
+ t.string "email_sha1"
90
+ t.string "email_salt"
91
+ t.boolean "verified", :default => false
92
+ t.datetime "created_at"
93
+ t.datetime "updated_at"
94
+ t.integer "creator_id"
95
+ t.integer "updater_id"
96
+ t.text "cached_tag_list"
97
+ t.boolean "disabled", :default => false
98
+ end
99
+
100
+ add_index "alchemy_crm_contacts", ["email"], :name => "index_alchemy_crm_contacts_on_email"
101
+ add_index "alchemy_crm_contacts", ["email_sha1"], :name => "index_alchemy_crm_contacts_on_email_sha1"
102
+
103
+ create_table "alchemy_crm_deliveries", :force => true do |t|
104
+ t.string "name"
105
+ t.integer "mailing_id"
106
+ t.datetime "created_at"
107
+ t.datetime "updated_at"
108
+ t.integer "creator_id"
109
+ t.integer "updater_id"
110
+ t.datetime "deliver_at"
111
+ t.datetime "delivered_at"
112
+ end
113
+
114
+ create_table "alchemy_crm_mailings", :force => true do |t|
115
+ t.string "name"
116
+ t.string "subject"
117
+ t.string "salt"
118
+ t.string "sha1"
119
+ t.integer "page_id"
120
+ t.text "additional_email_addresses"
121
+ t.integer "newsletter_id"
122
+ t.datetime "created_at"
123
+ t.datetime "updated_at"
124
+ t.integer "creator_id"
125
+ t.integer "updater_id"
126
+ end
127
+
128
+ add_index "alchemy_crm_mailings", ["sha1"], :name => "index_alchemy_crm_mailings_on_sha1"
129
+
130
+ create_table "alchemy_crm_newsletters", :force => true do |t|
131
+ t.string "name"
132
+ t.string "layout"
133
+ t.boolean "public", :default => false
134
+ t.datetime "created_at"
135
+ t.datetime "updated_at"
136
+ t.integer "creator_id"
137
+ t.integer "updater_id"
138
+ end
139
+
140
+ create_table "alchemy_crm_reactions", :force => true do |t|
141
+ t.integer "recipient_id"
142
+ t.integer "page_id"
143
+ t.integer "element_id"
144
+ t.datetime "created_at"
145
+ t.datetime "updated_at"
146
+ t.text "url"
147
+ end
148
+
149
+ add_index "alchemy_crm_reactions", ["recipient_id"], :name => "index_alchemy_crm_reactions_on_recipient_id"
150
+
151
+ create_table "alchemy_crm_recipients", :force => true do |t|
152
+ t.string "email"
153
+ t.boolean "bounced", :default => false
154
+ t.boolean "read", :default => false
155
+ t.boolean "reacted", :default => false
156
+ t.integer "delivery_id"
157
+ t.integer "contact_id"
158
+ t.string "message_id"
159
+ t.datetime "read_at"
160
+ t.datetime "bounced_at"
161
+ t.datetime "reacted_at"
162
+ t.datetime "created_at"
163
+ t.datetime "updated_at"
164
+ t.string "sha1"
165
+ t.string "salt"
166
+ end
167
+
168
+ add_index "alchemy_crm_recipients", ["contact_id"], :name => "index_alchemy_crm_recipients_on_contact_id"
169
+ add_index "alchemy_crm_recipients", ["delivery_id"], :name => "index_alchemy_crm_recipients_on_delivery_id"
170
+ add_index "alchemy_crm_recipients", ["email"], :name => "index_alchemy_crm_recipients_on_email"
171
+ add_index "alchemy_crm_recipients", ["message_id"], :name => "index_alchemy_crm_recipients_on_message_id"
172
+ add_index "alchemy_crm_recipients", ["sha1"], :name => "index_alchemy_crm_recipients_on_sha1"
173
+
174
+ create_table "alchemy_crm_subscriptions", :force => true do |t|
175
+ t.integer "contact_id"
176
+ t.integer "newsletter_id"
177
+ t.boolean "wants", :default => true
178
+ t.boolean "verified", :default => false
179
+ end
180
+
181
+ add_index "alchemy_crm_subscriptions", ["contact_id", "newsletter_id"], :name => "contact_newsletter_index", :unique => true
182
+
183
+ create_table "alchemy_elements", :force => true do |t|
184
+ t.string "name"
185
+ t.integer "position"
186
+ t.integer "page_id"
187
+ t.boolean "public", :default => true
188
+ t.boolean "folded", :default => false
189
+ t.boolean "unique", :default => false
190
+ t.datetime "created_at"
191
+ t.datetime "updated_at"
192
+ t.integer "creator_id"
193
+ t.integer "updater_id"
194
+ t.integer "cell_id"
195
+ end
196
+
197
+ add_index "alchemy_elements", ["page_id", "position"], :name => "index_elements_on_page_id_and_position"
198
+
199
+ create_table "alchemy_elements_alchemy_pages", :id => false, :force => true do |t|
200
+ t.integer "element_id"
201
+ t.integer "page_id"
202
+ end
203
+
204
+ create_table "alchemy_essence_audios", :force => true do |t|
205
+ t.integer "attachment_id"
206
+ t.integer "width", :default => 400
207
+ t.integer "height", :default => 300
208
+ t.boolean "show_eq", :default => true
209
+ t.boolean "show_navigation", :default => true
210
+ t.integer "creator_id"
211
+ t.integer "updater_id"
212
+ t.datetime "created_at"
213
+ t.datetime "updated_at"
214
+ end
215
+
216
+ create_table "alchemy_essence_dates", :force => true do |t|
217
+ t.datetime "date"
218
+ t.integer "creator_id"
219
+ t.integer "updater_id"
220
+ t.datetime "created_at"
221
+ t.datetime "updated_at"
222
+ end
223
+
224
+ create_table "alchemy_essence_element_teasers", :force => true do |t|
225
+ t.string "url"
226
+ t.string "title"
227
+ t.string "text"
228
+ t.integer "creator_id"
229
+ t.integer "updater_id"
230
+ t.datetime "created_at"
231
+ t.datetime "updated_at"
232
+ end
233
+
234
+ create_table "alchemy_essence_files", :force => true do |t|
235
+ t.integer "attachment_id"
236
+ t.string "title"
237
+ t.string "css_class"
238
+ t.integer "creator_id"
239
+ t.integer "updater_id"
240
+ t.datetime "created_at"
241
+ t.datetime "updated_at"
242
+ end
243
+
244
+ create_table "alchemy_essence_flashes", :force => true do |t|
245
+ t.integer "attachment_id"
246
+ t.integer "width", :default => 400
247
+ t.integer "height", :default => 300
248
+ t.string "player_version", :default => "9.0.28"
249
+ t.integer "creator_id"
250
+ t.integer "updater_id"
251
+ t.datetime "created_at"
252
+ t.datetime "updated_at"
253
+ end
254
+
255
+ create_table "alchemy_essence_htmls", :force => true do |t|
256
+ t.text "source"
257
+ t.integer "creator_id"
258
+ t.integer "updater_id"
259
+ t.datetime "created_at"
260
+ t.datetime "updated_at"
261
+ end
262
+
263
+ create_table "alchemy_essence_pictures", :force => true do |t|
264
+ t.integer "picture_id"
265
+ t.string "caption"
266
+ t.string "title"
267
+ t.string "alt_tag"
268
+ t.string "link"
269
+ t.string "link_class_name"
270
+ t.string "link_title"
271
+ t.string "css_class"
272
+ t.string "link_target"
273
+ t.integer "creator_id"
274
+ t.integer "updater_id"
275
+ t.datetime "created_at"
276
+ t.datetime "updated_at"
277
+ t.string "crop_from"
278
+ t.string "crop_size"
279
+ t.string "render_size"
280
+ end
281
+
282
+ create_table "alchemy_essence_richtexts", :force => true do |t|
283
+ t.text "body"
284
+ t.text "stripped_body"
285
+ t.boolean "do_not_index", :default => false
286
+ t.boolean "public"
287
+ t.integer "creator_id"
288
+ t.integer "updater_id"
289
+ t.datetime "created_at"
290
+ t.datetime "updated_at"
291
+ end
292
+
293
+ create_table "alchemy_essence_texts", :force => true do |t|
294
+ t.text "body"
295
+ t.string "link"
296
+ t.string "link_title"
297
+ t.string "link_class_name"
298
+ t.boolean "public", :default => false
299
+ t.boolean "do_not_index", :default => false
300
+ t.string "link_target"
301
+ t.integer "creator_id"
302
+ t.integer "updater_id"
303
+ t.datetime "created_at"
304
+ t.datetime "updated_at"
305
+ end
306
+
307
+ create_table "alchemy_essence_videos", :force => true do |t|
308
+ t.integer "attachment_id"
309
+ t.integer "width"
310
+ t.integer "height"
311
+ t.boolean "allow_fullscreen", :default => true
312
+ t.boolean "auto_play", :default => false
313
+ t.boolean "show_navigation", :default => true
314
+ t.integer "creator_id"
315
+ t.integer "updater_id"
316
+ t.datetime "created_at"
317
+ t.datetime "updated_at"
318
+ end
319
+
320
+ create_table "alchemy_folded_pages", :force => true do |t|
321
+ t.integer "page_id"
322
+ t.integer "user_id"
323
+ t.boolean "folded", :default => false
324
+ end
325
+
326
+ create_table "alchemy_languages", :force => true do |t|
327
+ t.string "name"
328
+ t.string "language_code"
329
+ t.string "frontpage_name"
330
+ t.string "page_layout", :default => "intro"
331
+ t.boolean "public", :default => false
332
+ t.datetime "created_at"
333
+ t.datetime "updated_at"
334
+ t.integer "creator_id"
335
+ t.integer "updater_id"
336
+ t.boolean "default", :default => false
337
+ t.string "country_code"
338
+ end
339
+
340
+ add_index "alchemy_languages", ["language_code", "country_code"], :name => "index_alchemy_languages_on_language_code_and_country_code"
341
+ add_index "alchemy_languages", ["language_code"], :name => "index_alchemy_languages_on_language_code"
342
+
343
+ create_table "alchemy_pages", :force => true do |t|
344
+ t.string "name"
345
+ t.string "urlname"
346
+ t.string "title"
347
+ t.string "language_code"
348
+ t.boolean "language_root", :limit => 255
349
+ t.string "page_layout"
350
+ t.text "meta_keywords"
351
+ t.text "meta_description"
352
+ t.integer "lft"
353
+ t.integer "rgt"
354
+ t.integer "parent_id"
355
+ t.integer "depth"
356
+ t.boolean "visible", :default => false
357
+ t.boolean "public", :default => false
358
+ t.boolean "locked", :default => false
359
+ t.integer "locked_by"
360
+ t.boolean "restricted", :default => false
361
+ t.boolean "robot_index", :default => true
362
+ t.boolean "robot_follow", :default => true
363
+ t.boolean "sitemap", :default => true
364
+ t.boolean "layoutpage", :default => false
365
+ t.datetime "created_at"
366
+ t.datetime "updated_at"
367
+ t.integer "creator_id"
368
+ t.integer "updater_id"
369
+ t.integer "language_id"
370
+ end
371
+
372
+ add_index "alchemy_pages", ["language_id"], :name => "index_pages_on_language_id"
373
+ add_index "alchemy_pages", ["parent_id", "lft"], :name => "index_pages_on_parent_id_and_lft"
374
+ add_index "alchemy_pages", ["urlname"], :name => "index_pages_on_urlname"
375
+
376
+ create_table "alchemy_pictures", :force => true do |t|
377
+ t.string "name"
378
+ t.string "image_filename"
379
+ t.integer "image_width"
380
+ t.integer "image_height"
381
+ t.datetime "created_at"
382
+ t.datetime "updated_at"
383
+ t.integer "creator_id"
384
+ t.integer "updater_id"
385
+ end
386
+
387
+ create_table "alchemy_users", :force => true do |t|
388
+ t.string "firstname"
389
+ t.string "lastname"
390
+ t.string "login"
391
+ t.string "email"
392
+ t.string "gender"
393
+ t.string "role", :default => "registered"
394
+ t.string "language"
395
+ t.string "crypted_password", :limit => 128, :default => "", :null => false
396
+ t.string "password_salt", :limit => 128, :default => "", :null => false
397
+ t.integer "login_count", :default => 0, :null => false
398
+ t.integer "failed_login_count", :default => 0, :null => false
399
+ t.datetime "last_request_at"
400
+ t.datetime "current_login_at"
401
+ t.datetime "last_login_at"
402
+ t.string "current_login_ip"
403
+ t.string "last_login_ip"
404
+ t.string "persistence_token", :null => false
405
+ t.string "single_access_token", :null => false
406
+ t.string "perishable_token", :null => false
407
+ t.datetime "created_at"
408
+ t.datetime "updated_at"
409
+ t.integer "creator_id"
410
+ t.integer "updater_id"
411
+ end
412
+
413
+ add_index "alchemy_users", ["perishable_token"], :name => "index_users_on_perishable_token"
414
+
415
+ create_table "delayed_jobs", :force => true do |t|
416
+ t.integer "priority", :default => 0
417
+ t.integer "attempts", :default => 0
418
+ t.text "handler"
419
+ t.text "last_error"
420
+ t.datetime "run_at"
421
+ t.datetime "locked_at"
422
+ t.datetime "failed_at"
423
+ t.string "locked_by"
424
+ t.datetime "created_at"
425
+ t.datetime "updated_at"
426
+ t.string "queue"
427
+ end
428
+
429
+ add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
430
+
431
+ create_table "taggings", :force => true do |t|
432
+ t.integer "tag_id"
433
+ t.integer "taggable_id"
434
+ t.string "taggable_type"
435
+ t.datetime "created_at"
436
+ t.integer "tagger_id"
437
+ t.string "tagger_type"
438
+ t.string "context"
439
+ end
440
+
441
+ add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
442
+ add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
443
+
444
+ create_table "tags", :force => true do |t|
445
+ t.string "name"
446
+ t.datetime "created_at"
447
+ t.datetime "updated_at"
448
+ t.integer "creator_id"
449
+ t.integer "updater_id"
450
+ end
451
+
452
+ end