zencms 0.0.1

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 (106) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/zencms/application.js.coffee +19 -0
  6. data/app/assets/stylesheets/zencms/application.css.sass +6 -0
  7. data/app/controllers/zencms/application_controller.rb +4 -0
  8. data/app/controllers/zencms/backend/posts_controller.rb +37 -0
  9. data/app/controllers/zencms/posts_controller.rb +34 -0
  10. data/app/helpers/zencms/application_helper.rb +25 -0
  11. data/app/helpers/zencms/menu_items_helper.rb +15 -0
  12. data/app/helpers/zencms/posts_helper.rb +41 -0
  13. data/app/models/zencms/asset.rb +14 -0
  14. data/app/models/zencms/menu_item.rb +11 -0
  15. data/app/models/zencms/post.rb +48 -0
  16. data/app/models/zencms/post/audio.rb +8 -0
  17. data/app/models/zencms/post/image.rb +8 -0
  18. data/app/models/zencms/post_type.rb +5 -0
  19. data/app/views/layouts/zencms/application.html.haml +35 -0
  20. data/app/views/zencms/backend/posts/_audio_fields.html.haml +14 -0
  21. data/app/views/zencms/backend/posts/_form.html.haml +53 -0
  22. data/app/views/zencms/backend/posts/_image_fields.html.haml +14 -0
  23. data/app/views/zencms/backend/posts/edit.html.haml +1 -0
  24. data/app/views/zencms/backend/posts/index.html.haml +26 -0
  25. data/app/views/zencms/backend/posts/new.html.haml +1 -0
  26. data/app/views/zencms/posts/_post.html.haml +17 -0
  27. data/app/views/zencms/posts/_post_grid.html.haml +6 -0
  28. data/app/views/zencms/posts/_post_teaser.html.haml +6 -0
  29. data/app/views/zencms/posts/index.html.haml +6 -0
  30. data/app/views/zencms/posts/show.html.haml +1 -0
  31. data/app/views/zencms/shared/_block_archive.html.haml +6 -0
  32. data/app/views/zencms/shared/_block_categories.html.haml +6 -0
  33. data/app/views/zencms/shared/_block_tags.html.haml +7 -0
  34. data/app/views/zencms/shared/_images_carousel.html.haml +12 -0
  35. data/config/initializers/act_as_taggable_on.rb +10 -0
  36. data/config/initializers/friendly_id.rb +88 -0
  37. data/config/initializers/paperclip_defaults.rb +4 -0
  38. data/config/initializers/simple_form.rb +145 -0
  39. data/config/initializers/simple_form_bootstrap.rb +85 -0
  40. data/config/locales/simple_form.en.yml +26 -0
  41. data/config/routes.rb +17 -0
  42. data/db/migrate/20131222153742_create_zencms_posts.rb +15 -0
  43. data/db/migrate/20131222153810_create_zencms_assets.rb +13 -0
  44. data/db/migrate/20131222153844_acts_as_taggable_on_migration.rb +31 -0
  45. data/db/migrate/20131222154013_translate_posts.rb +14 -0
  46. data/db/migrate/20131222154211_create_friendly_id_slugs.rb +15 -0
  47. data/db/migrate/20131222161551_create_zencms_post_types.rb +11 -0
  48. data/db/migrate/20131223090443_create_zencms_menu_items.rb +13 -0
  49. data/lib/tasks/zencms_tasks.rake +4 -0
  50. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  51. data/lib/zencms.rb +4 -0
  52. data/lib/zencms/engine.rb +31 -0
  53. data/lib/zencms/version.rb +3 -0
  54. data/test/dummy/README.rdoc +28 -0
  55. data/test/dummy/Rakefile +6 -0
  56. data/test/dummy/app/assets/javascripts/application.js +13 -0
  57. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  58. data/test/dummy/app/controllers/application_controller.rb +5 -0
  59. data/test/dummy/app/helpers/application_helper.rb +2 -0
  60. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  61. data/test/dummy/bin/bundle +3 -0
  62. data/test/dummy/bin/rails +4 -0
  63. data/test/dummy/bin/rake +4 -0
  64. data/test/dummy/config.ru +4 -0
  65. data/test/dummy/config/application.rb +23 -0
  66. data/test/dummy/config/boot.rb +5 -0
  67. data/test/dummy/config/database.yml +25 -0
  68. data/test/dummy/config/environment.rb +5 -0
  69. data/test/dummy/config/environments/development.rb +29 -0
  70. data/test/dummy/config/environments/production.rb +80 -0
  71. data/test/dummy/config/environments/test.rb +36 -0
  72. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  73. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  74. data/test/dummy/config/initializers/inflections.rb +16 -0
  75. data/test/dummy/config/initializers/mime_types.rb +5 -0
  76. data/test/dummy/config/initializers/secret_token.rb +12 -0
  77. data/test/dummy/config/initializers/session_store.rb +3 -0
  78. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  79. data/test/dummy/config/locales/en.yml +23 -0
  80. data/test/dummy/config/routes.rb +4 -0
  81. data/test/dummy/db/development.sqlite3 +0 -0
  82. data/test/dummy/db/migrate/20131222160046_create_zencms_posts.zencms.rb +16 -0
  83. data/test/dummy/db/migrate/20131222160047_create_zencms_assets.zencms.rb +14 -0
  84. data/test/dummy/db/migrate/20131222160048_acts_as_taggable_on_migration.zencms.rb +31 -0
  85. data/test/dummy/db/migrate/20131222160049_translate_posts.zencms.rb +15 -0
  86. data/test/dummy/db/migrate/20131222160050_create_friendly_id_slugs.zencms.rb +16 -0
  87. data/test/dummy/db/schema.rb +88 -0
  88. data/test/dummy/db/test.sqlite3 +0 -0
  89. data/test/dummy/log/development.log +48 -0
  90. data/test/dummy/log/test.log +5 -0
  91. data/test/dummy/public/404.html +58 -0
  92. data/test/dummy/public/422.html +58 -0
  93. data/test/dummy/public/500.html +57 -0
  94. data/test/dummy/public/favicon.ico +0 -0
  95. data/test/fixtures/zencms/assets.yml +11 -0
  96. data/test/fixtures/zencms/menu_items.yml +11 -0
  97. data/test/fixtures/zencms/post_types.yml +11 -0
  98. data/test/fixtures/zencms/posts.yml +11 -0
  99. data/test/integration/navigation_test.rb +10 -0
  100. data/test/models/zencms/assets_test.rb +9 -0
  101. data/test/models/zencms/menu_item_test.rb +9 -0
  102. data/test/models/zencms/post_test.rb +9 -0
  103. data/test/models/zencms/post_type_test.rb +9 -0
  104. data/test/test_helper.rb +15 -0
  105. data/test/zencms_test.rb +7 -0
  106. metadata +478 -0
@@ -0,0 +1,80 @@
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
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
23
+ config.serve_static_assets = false
24
+
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
28
+
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+ config.assets.compile = false
31
+
32
+ # Generate digests for assets URLs.
33
+ config.assets.digest = true
34
+
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
+
42
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
+ # config.force_ssl = true
44
+
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
50
+
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
+ # config.action_controller.asset_host = "http://assets.example.com"
59
+
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
+ # config.assets.precompile += %w( search.js )
63
+
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
+ # config.action_mailer.raise_delivery_errors = false
67
+
68
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
+ # the I18n.default_locale when a translation can not be found).
70
+ config.i18n.fallbacks = true
71
+
72
+ # Send deprecation notices to registered listeners.
73
+ config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
80
+ end
@@ -0,0 +1,36 @@
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 = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ 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,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # 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,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '67520cf7dec03d2f5ce6e8db64372b466f879b5132ee24021c40aeb06f09ae4b6aba8c247c7bb2226e461a54774f5b5920d4c73fcc9ace25022bcb80f9a42763'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Zencms::Engine => "/zencms"
4
+ end
Binary file
@@ -0,0 +1,16 @@
1
+ # This migration comes from zencms (originally 20131222153742)
2
+ class CreateZencmsPosts < ActiveRecord::Migration
3
+ def change
4
+ create_table :zencms_posts do |t|
5
+ t.string :title
6
+ t.text :body
7
+ t.text :properties
8
+ t.boolean :published, :default => true
9
+ t.boolean :sticky
10
+ t.boolean :frontpage
11
+ t.references :post_type, index: true
12
+ t.references :user, index: true
13
+ t.timestamps
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ # This migration comes from zencms (originally 20131222153810)
2
+ class CreateZencmsAssets < ActiveRecord::Migration
3
+ def change
4
+ create_table :zencms_assets do |t|
5
+ t.string :title
6
+ t.string :type
7
+ t.references :assetable, polymorphic: true, index: true
8
+ t.string :attachment_file_name
9
+ t.string :attachment_content_type
10
+ t.integer :attachment_file_size
11
+ t.timestamps
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,31 @@
1
+ # This migration comes from zencms (originally 20131222153844)
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
@@ -0,0 +1,15 @@
1
+ # This migration comes from zencms (originally 20131222154013)
2
+ class TranslatePosts < ActiveRecord::Migration
3
+ def self.up
4
+ Zencms::Post.create_translation_table!({
5
+ :title => :string,
6
+ :body => :text
7
+ }, {
8
+ :migrate_data => true
9
+ })
10
+ end
11
+
12
+ def self.down
13
+ Zencms::Post.drop_translation_table! :migrate_data => true
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ # This migration comes from zencms (originally 20131222154211)
2
+ class CreateFriendlyIdSlugs < ActiveRecord::Migration
3
+ def change
4
+ create_table :friendly_id_slugs do |t|
5
+ t.string :slug, :null => false
6
+ t.integer :sluggable_id, :null => false
7
+ t.string :sluggable_type, :limit => 50
8
+ t.string :scope
9
+ t.datetime :created_at
10
+ end
11
+ add_index :friendly_id_slugs, :sluggable_id
12
+ add_index :friendly_id_slugs, [:slug, :sluggable_type]
13
+ add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], :unique => true
14
+ add_index :friendly_id_slugs, :sluggable_type
15
+ end
16
+ end
@@ -0,0 +1,88 @@
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: 20131222160050) do
15
+
16
+ create_table "friendly_id_slugs", force: true do |t|
17
+ t.string "slug", null: false
18
+ t.integer "sluggable_id", null: false
19
+ t.string "sluggable_type", limit: 50
20
+ t.string "scope"
21
+ t.datetime "created_at"
22
+ end
23
+
24
+ add_index "friendly_id_slugs", ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true
25
+ add_index "friendly_id_slugs", ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type"
26
+ add_index "friendly_id_slugs", ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id"
27
+ add_index "friendly_id_slugs", ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type"
28
+
29
+ create_table "taggings", force: true do |t|
30
+ t.integer "tag_id"
31
+ t.integer "taggable_id"
32
+ t.string "taggable_type"
33
+ t.integer "tagger_id"
34
+ t.string "tagger_type"
35
+ t.string "context", limit: 128
36
+ t.datetime "created_at"
37
+ end
38
+
39
+ add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id"
40
+ add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
41
+
42
+ create_table "tags", force: true do |t|
43
+ t.string "name"
44
+ end
45
+
46
+ create_table "zencms_assets", force: true do |t|
47
+ t.string "title"
48
+ t.string "type"
49
+ t.integer "assetable_id"
50
+ t.string "assetable_type"
51
+ t.string "attachment_file_name"
52
+ t.string "attachment_content_type"
53
+ t.integer "attachment_file_size"
54
+ t.datetime "created_at"
55
+ t.datetime "updated_at"
56
+ end
57
+
58
+ add_index "zencms_assets", ["assetable_id", "assetable_type"], name: "index_zencms_assets_on_assetable_id_and_assetable_type"
59
+
60
+ create_table "zencms_post_translations", force: true do |t|
61
+ t.integer "zencms_post_id", null: false
62
+ t.string "locale", null: false
63
+ t.datetime "created_at"
64
+ t.datetime "updated_at"
65
+ t.string "title"
66
+ t.text "body"
67
+ end
68
+
69
+ add_index "zencms_post_translations", ["locale"], name: "index_zencms_post_translations_on_locale"
70
+ add_index "zencms_post_translations", ["zencms_post_id"], name: "index_zencms_post_translations_on_zencms_post_id"
71
+
72
+ create_table "zencms_posts", force: true do |t|
73
+ t.string "title"
74
+ t.text "body"
75
+ t.text "properties"
76
+ t.boolean "published", default: true
77
+ t.boolean "sticky"
78
+ t.boolean "frontpage"
79
+ t.integer "post_type_id"
80
+ t.integer "user_id"
81
+ t.datetime "created_at"
82
+ t.datetime "updated_at"
83
+ end
84
+
85
+ add_index "zencms_posts", ["post_type_id"], name: "index_zencms_posts_on_post_type_id"
86
+ add_index "zencms_posts", ["user_id"], name: "index_zencms_posts_on_user_id"
87
+
88
+ end
File without changes
@@ -0,0 +1,48 @@
1
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7
+ Migrating to CreateZencmsPosts (20131222160046)
8
+  (0.0ms) begin transaction
9
+  (0.3ms) CREATE TABLE "zencms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "properties" text, "published" boolean DEFAULT 't', "sticky" boolean, "frontpage" boolean, "post_type_id" integer, "user_id" integer, "created_at" datetime, "updated_at" datetime) 
10
+  (0.1ms) CREATE INDEX "index_zencms_posts_on_post_type_id" ON "zencms_posts" ("post_type_id")
11
+  (0.1ms) CREATE INDEX "index_zencms_posts_on_user_id" ON "zencms_posts" ("user_id")
12
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131222160046"]]
13
+  (1.3ms) commit transaction
14
+ Migrating to CreateZencmsAssets (20131222160047)
15
+  (0.1ms) begin transaction
16
+  (0.2ms) CREATE TABLE "zencms_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "type" varchar(255), "assetable_id" integer, "assetable_type" varchar(255), "attachment_file_name" varchar(255), "attachment_content_type" varchar(255), "attachment_file_size" integer, "created_at" datetime, "updated_at" datetime) 
17
+  (0.1ms) CREATE INDEX "index_zencms_assets_on_assetable_id_and_assetable_type" ON "zencms_assets" ("assetable_id", "assetable_type")
18
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131222160047"]]
19
+  (0.9ms) commit transaction
20
+ Migrating to ActsAsTaggableOnMigration (20131222160048)
21
+  (0.1ms) begin transaction
22
+  (0.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
23
+  (0.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar(255), "tagger_id" integer, "tagger_type" varchar(255), "context" varchar(128), "created_at" datetime) 
24
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
25
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
26
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131222160048"]]
27
+  (0.6ms) commit transaction
28
+ Migrating to TranslatePosts (20131222160049)
29
+  (0.1ms) begin transaction
30
+  (0.3ms) CREATE TABLE "zencms_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zencms_post_id" integer NOT NULL, "locale" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime) 
31
+  (0.1ms) ALTER TABLE "zencms_post_translations" ADD "title" varchar(255)
32
+  (0.1ms) ALTER TABLE "zencms_post_translations" ADD "body" text
33
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
34
+ Zencms::Post Load (0.1ms) SELECT "zencms_posts".* FROM "zencms_posts" ORDER BY "zencms_posts"."id" ASC LIMIT 1000
35
+  (0.1ms) CREATE INDEX "index_zencms_post_translations_on_zencms_post_id" ON "zencms_post_translations" ("zencms_post_id")
36
+  (0.1ms) CREATE INDEX "index_zencms_post_translations_on_locale" ON "zencms_post_translations" ("locale")
37
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131222160049"]]
38
+  (0.7ms) commit transaction
39
+ Migrating to CreateFriendlyIdSlugs (20131222160050)
40
+  (0.0ms) begin transaction
41
+  (0.2ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar(255) NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar(255), "created_at" datetime)
42
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")
43
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")
44
+  (0.9ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")
45
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type")
46
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131222160050"]]
47
+  (0.7ms) commit transaction
48
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"