alchemy-usermanual 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.travis.yml +10 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +27 -0
- data/README.md +65 -0
- data/Rakefile +39 -0
- data/alchemy-usermanual.gemspec +26 -0
- data/app/assets/images/alchemy/icon_user_manual.png +0 -0
- data/app/assets/javascripts/alchemy/user_manual.js.coffee +8 -0
- data/app/assets/stylesheets/alchemy/user_manual.scss +577 -0
- data/app/controllers/alchemy/admin/user_manual_controller.rb +11 -0
- data/app/views/alchemy/admin/user_manual/show.html.erb +9 -0
- data/config/authorization_rules.rb +5 -0
- data/config/initializers/alchemy_module.rb +15 -0
- data/config/locales/de.yml +25 -0
- data/config/locales/en.yml +25 -0
- data/config/routes.rb +5 -0
- data/lib/alchemy/user_manual/creator.rb +43 -0
- data/lib/alchemy/user_manual/engine.rb +21 -0
- data/lib/alchemy/user_manual/helpers/template_helper.rb +51 -0
- data/lib/alchemy/user_manual/templates/elements.md.erb +13 -0
- data/lib/alchemy/user_manual/templates/introduction.md.erb +3 -0
- data/lib/alchemy/user_manual/templates/page_layouts.md.erb +13 -0
- data/lib/alchemy/user_manual/version.rb +5 -0
- data/lib/alchemy/usermanual.rb +9 -0
- data/spec/controllers/admin/user_manual_controller_spec.rb +14 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/alchemy/elements.yml +6 -0
- data/spec/dummy/config/alchemy/page_layouts.yml +2 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/migrate/20131214164341_alchemy_two_point_six.alchemy.rb +337 -0
- data/spec/dummy/db/schema.rb +338 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/libraries/creator_spec.rb +29 -0
- data/spec/libraries/template_helper_spec.rb +7 -0
- data/spec/spec_helper.rb +21 -0
- metadata +231 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
20
|
+
|
21
|
+
production:
|
22
|
+
adapter: sqlite3
|
23
|
+
database: db/production.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -0,0 +1,29 @@
|
|
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
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
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
|
+
# Raise an error on page load if there are pending migrations
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
end
|
@@ -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,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,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 = 'a8bc6ecb76f8ef751e136de41d23b36b3adaa81d1de5e2b3ecb5b0c0e92075c60c99a6191049955176c55ad9ba499358bb59861b29b3b408425562e7a5a6740d'
|
@@ -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,337 @@
|
|
1
|
+
# This migration comes from alchemy (originally 20130827094554)
|
2
|
+
# This is a compressed migration for creating all Alchemy 2.6 tables at once.
|
3
|
+
#
|
4
|
+
# === Notice
|
5
|
+
#
|
6
|
+
# In order to upgrade from an old version of Alchemy, you have to run all migrations from
|
7
|
+
# each version you missed up to the version you want to upgrade to, before running this migration.
|
8
|
+
#
|
9
|
+
class AlchemyTwoPointSix < ActiveRecord::Migration
|
10
|
+
def up
|
11
|
+
# Do not run if Alchemy tables are already present
|
12
|
+
return if table_exists?(:alchemy_pages)
|
13
|
+
|
14
|
+
create_table "alchemy_attachments", :force => true do |t|
|
15
|
+
t.string "name"
|
16
|
+
t.string "file_name"
|
17
|
+
t.string "file_mime_type"
|
18
|
+
t.integer "file_size"
|
19
|
+
t.integer "creator_id"
|
20
|
+
t.integer "updater_id"
|
21
|
+
t.datetime "created_at", :null => false
|
22
|
+
t.datetime "updated_at", :null => false
|
23
|
+
t.text "cached_tag_list"
|
24
|
+
t.string "file_uid"
|
25
|
+
end
|
26
|
+
|
27
|
+
add_index "alchemy_attachments", ["file_uid"], :name => "index_alchemy_attachments_on_file_uid"
|
28
|
+
|
29
|
+
create_table "alchemy_cells", :force => true do |t|
|
30
|
+
t.integer "page_id"
|
31
|
+
t.string "name"
|
32
|
+
t.datetime "created_at", :null => false
|
33
|
+
t.datetime "updated_at", :null => false
|
34
|
+
end
|
35
|
+
|
36
|
+
create_table "alchemy_contents", :force => true do |t|
|
37
|
+
t.string "name"
|
38
|
+
t.string "essence_type"
|
39
|
+
t.integer "essence_id"
|
40
|
+
t.integer "element_id"
|
41
|
+
t.integer "position"
|
42
|
+
t.datetime "created_at", :null => false
|
43
|
+
t.datetime "updated_at", :null => false
|
44
|
+
t.integer "creator_id"
|
45
|
+
t.integer "updater_id"
|
46
|
+
end
|
47
|
+
|
48
|
+
add_index "alchemy_contents", ["element_id", "position"], :name => "index_contents_on_element_id_and_position"
|
49
|
+
|
50
|
+
create_table "alchemy_elements", :force => true do |t|
|
51
|
+
t.string "name"
|
52
|
+
t.integer "position"
|
53
|
+
t.integer "page_id"
|
54
|
+
t.boolean "public", :default => true
|
55
|
+
t.boolean "folded", :default => false
|
56
|
+
t.boolean "unique", :default => false
|
57
|
+
t.datetime "created_at", :null => false
|
58
|
+
t.datetime "updated_at", :null => false
|
59
|
+
t.integer "creator_id"
|
60
|
+
t.integer "updater_id"
|
61
|
+
t.integer "cell_id"
|
62
|
+
t.text "cached_tag_list"
|
63
|
+
end
|
64
|
+
|
65
|
+
add_index "alchemy_elements", ["page_id", "position"], :name => "index_elements_on_page_id_and_position"
|
66
|
+
|
67
|
+
create_table "alchemy_elements_alchemy_pages", :id => false, :force => true do |t|
|
68
|
+
t.integer "element_id"
|
69
|
+
t.integer "page_id"
|
70
|
+
end
|
71
|
+
|
72
|
+
create_table "alchemy_essence_booleans", :force => true do |t|
|
73
|
+
t.boolean "value"
|
74
|
+
t.datetime "created_at", :null => false
|
75
|
+
t.datetime "updated_at", :null => false
|
76
|
+
t.integer "creator_id"
|
77
|
+
t.integer "updater_id"
|
78
|
+
end
|
79
|
+
|
80
|
+
add_index "alchemy_essence_booleans", ["value"], :name => "index_alchemy_essence_booleans_on_value"
|
81
|
+
|
82
|
+
create_table "alchemy_essence_dates", :force => true do |t|
|
83
|
+
t.datetime "date"
|
84
|
+
t.integer "creator_id"
|
85
|
+
t.integer "updater_id"
|
86
|
+
t.datetime "created_at", :null => false
|
87
|
+
t.datetime "updated_at", :null => false
|
88
|
+
end
|
89
|
+
|
90
|
+
create_table "alchemy_essence_files", :force => true do |t|
|
91
|
+
t.integer "attachment_id"
|
92
|
+
t.string "title"
|
93
|
+
t.string "css_class"
|
94
|
+
t.integer "creator_id"
|
95
|
+
t.integer "updater_id"
|
96
|
+
t.datetime "created_at", :null => false
|
97
|
+
t.datetime "updated_at", :null => false
|
98
|
+
end
|
99
|
+
|
100
|
+
create_table "alchemy_essence_htmls", :force => true do |t|
|
101
|
+
t.text "source"
|
102
|
+
t.integer "creator_id"
|
103
|
+
t.integer "updater_id"
|
104
|
+
t.datetime "created_at", :null => false
|
105
|
+
t.datetime "updated_at", :null => false
|
106
|
+
end
|
107
|
+
|
108
|
+
create_table "alchemy_essence_links", :force => true do |t|
|
109
|
+
t.string "link"
|
110
|
+
t.string "link_title"
|
111
|
+
t.string "link_target"
|
112
|
+
t.string "link_class_name"
|
113
|
+
t.datetime "created_at", :null => false
|
114
|
+
t.datetime "updated_at", :null => false
|
115
|
+
t.integer "creator_id"
|
116
|
+
t.integer "updater_id"
|
117
|
+
end
|
118
|
+
|
119
|
+
create_table "alchemy_essence_pictures", :force => true do |t|
|
120
|
+
t.integer "picture_id"
|
121
|
+
t.string "caption"
|
122
|
+
t.string "title"
|
123
|
+
t.string "alt_tag"
|
124
|
+
t.string "link"
|
125
|
+
t.string "link_class_name"
|
126
|
+
t.string "link_title"
|
127
|
+
t.string "css_class"
|
128
|
+
t.string "link_target"
|
129
|
+
t.integer "creator_id"
|
130
|
+
t.integer "updater_id"
|
131
|
+
t.datetime "created_at", :null => false
|
132
|
+
t.datetime "updated_at", :null => false
|
133
|
+
t.string "crop_from"
|
134
|
+
t.string "crop_size"
|
135
|
+
t.string "render_size"
|
136
|
+
end
|
137
|
+
|
138
|
+
create_table "alchemy_essence_richtexts", :force => true do |t|
|
139
|
+
t.text "body"
|
140
|
+
t.text "stripped_body"
|
141
|
+
t.boolean "do_not_index", :default => false
|
142
|
+
t.boolean "public"
|
143
|
+
t.integer "creator_id"
|
144
|
+
t.integer "updater_id"
|
145
|
+
t.datetime "created_at", :null => false
|
146
|
+
t.datetime "updated_at", :null => false
|
147
|
+
end
|
148
|
+
|
149
|
+
create_table "alchemy_essence_selects", :force => true do |t|
|
150
|
+
t.string "value"
|
151
|
+
t.datetime "created_at", :null => false
|
152
|
+
t.datetime "updated_at", :null => false
|
153
|
+
t.integer "creator_id"
|
154
|
+
t.integer "updater_id"
|
155
|
+
end
|
156
|
+
|
157
|
+
add_index "alchemy_essence_selects", ["value"], :name => "index_alchemy_essence_selects_on_value"
|
158
|
+
|
159
|
+
create_table "alchemy_essence_texts", :force => true do |t|
|
160
|
+
t.text "body"
|
161
|
+
t.string "link"
|
162
|
+
t.string "link_title"
|
163
|
+
t.string "link_class_name"
|
164
|
+
t.boolean "public", :default => false
|
165
|
+
t.boolean "do_not_index", :default => false
|
166
|
+
t.string "link_target"
|
167
|
+
t.integer "creator_id"
|
168
|
+
t.integer "updater_id"
|
169
|
+
t.datetime "created_at", :null => false
|
170
|
+
t.datetime "updated_at", :null => false
|
171
|
+
end
|
172
|
+
|
173
|
+
create_table "alchemy_folded_pages", :force => true do |t|
|
174
|
+
t.integer "page_id"
|
175
|
+
t.integer "user_id"
|
176
|
+
t.boolean "folded", :default => false
|
177
|
+
end
|
178
|
+
|
179
|
+
create_table "alchemy_languages", :force => true do |t|
|
180
|
+
t.string "name"
|
181
|
+
t.string "language_code"
|
182
|
+
t.string "frontpage_name"
|
183
|
+
t.string "page_layout", :default => "intro"
|
184
|
+
t.boolean "public", :default => false
|
185
|
+
t.datetime "created_at", :null => false
|
186
|
+
t.datetime "updated_at", :null => false
|
187
|
+
t.integer "creator_id"
|
188
|
+
t.integer "updater_id"
|
189
|
+
t.boolean "default", :default => false
|
190
|
+
t.string "country_code", :default => "", :null => false
|
191
|
+
t.integer "site_id"
|
192
|
+
end
|
193
|
+
|
194
|
+
add_index "alchemy_languages", ["language_code", "country_code"], :name => "index_alchemy_languages_on_language_code_and_country_code"
|
195
|
+
add_index "alchemy_languages", ["language_code"], :name => "index_alchemy_languages_on_language_code"
|
196
|
+
add_index "alchemy_languages", ["site_id"], :name => "index_alchemy_languages_on_site_id"
|
197
|
+
|
198
|
+
create_table "alchemy_legacy_page_urls", :force => true do |t|
|
199
|
+
t.string "urlname", :null => false
|
200
|
+
t.integer "page_id", :null => false
|
201
|
+
t.datetime "created_at", :null => false
|
202
|
+
t.datetime "updated_at", :null => false
|
203
|
+
end
|
204
|
+
|
205
|
+
add_index "alchemy_legacy_page_urls", ["urlname"], :name => "index_alchemy_legacy_page_urls_on_urlname"
|
206
|
+
|
207
|
+
create_table "alchemy_pages", :force => true do |t|
|
208
|
+
t.string "name"
|
209
|
+
t.string "urlname"
|
210
|
+
t.string "title"
|
211
|
+
t.string "language_code"
|
212
|
+
t.boolean "language_root"
|
213
|
+
t.string "page_layout"
|
214
|
+
t.text "meta_keywords"
|
215
|
+
t.text "meta_description"
|
216
|
+
t.integer "lft"
|
217
|
+
t.integer "rgt"
|
218
|
+
t.integer "parent_id"
|
219
|
+
t.integer "depth"
|
220
|
+
t.boolean "visible", :default => false
|
221
|
+
t.boolean "public", :default => false
|
222
|
+
t.boolean "locked", :default => false
|
223
|
+
t.integer "locked_by"
|
224
|
+
t.boolean "restricted", :default => false
|
225
|
+
t.boolean "robot_index", :default => true
|
226
|
+
t.boolean "robot_follow", :default => true
|
227
|
+
t.boolean "sitemap", :default => true
|
228
|
+
t.boolean "layoutpage", :default => false
|
229
|
+
t.datetime "created_at", :null => false
|
230
|
+
t.datetime "updated_at", :null => false
|
231
|
+
t.integer "creator_id"
|
232
|
+
t.integer "updater_id"
|
233
|
+
t.integer "language_id"
|
234
|
+
t.text "cached_tag_list"
|
235
|
+
end
|
236
|
+
|
237
|
+
add_index "alchemy_pages", ["language_id"], :name => "index_pages_on_language_id"
|
238
|
+
add_index "alchemy_pages", ["parent_id", "lft"], :name => "index_pages_on_parent_id_and_lft"
|
239
|
+
add_index "alchemy_pages", ["urlname"], :name => "index_pages_on_urlname"
|
240
|
+
|
241
|
+
create_table "alchemy_pictures", :force => true do |t|
|
242
|
+
t.string "name"
|
243
|
+
t.string "image_file_name"
|
244
|
+
t.integer "image_file_width"
|
245
|
+
t.integer "image_file_height"
|
246
|
+
t.datetime "created_at", :null => false
|
247
|
+
t.datetime "updated_at", :null => false
|
248
|
+
t.integer "creator_id"
|
249
|
+
t.integer "updater_id"
|
250
|
+
t.string "upload_hash"
|
251
|
+
t.text "cached_tag_list"
|
252
|
+
t.string "image_file_uid"
|
253
|
+
t.integer "image_file_size"
|
254
|
+
end
|
255
|
+
|
256
|
+
create_table "alchemy_sites", :force => true do |t|
|
257
|
+
t.string "host"
|
258
|
+
t.string "name"
|
259
|
+
t.datetime "created_at", :null => false
|
260
|
+
t.datetime "updated_at", :null => false
|
261
|
+
t.boolean "public", :default => false
|
262
|
+
t.text "aliases"
|
263
|
+
t.boolean "redirect_to_primary_host"
|
264
|
+
end
|
265
|
+
|
266
|
+
add_index "alchemy_sites", ["host", "public"], :name => "alchemy_sites_public_hosts_idx"
|
267
|
+
add_index "alchemy_sites", ["host"], :name => "index_alchemy_sites_on_host"
|
268
|
+
|
269
|
+
create_table "alchemy_users", :force => true do |t|
|
270
|
+
t.string "firstname"
|
271
|
+
t.string "lastname"
|
272
|
+
t.string "login"
|
273
|
+
t.string "email"
|
274
|
+
t.string "gender"
|
275
|
+
t.string "roles", :default => "registered"
|
276
|
+
t.string "language"
|
277
|
+
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
278
|
+
t.string "password_salt", :limit => 128, :default => "", :null => false
|
279
|
+
t.integer "sign_in_count", :default => 0, :null => false
|
280
|
+
t.integer "failed_attempts", :default => 0, :null => false
|
281
|
+
t.datetime "last_request_at"
|
282
|
+
t.datetime "current_sign_in_at"
|
283
|
+
t.datetime "last_sign_in_at"
|
284
|
+
t.string "current_sign_in_ip"
|
285
|
+
t.string "last_sign_in_ip"
|
286
|
+
t.datetime "created_at", :null => false
|
287
|
+
t.datetime "updated_at", :null => false
|
288
|
+
t.integer "creator_id"
|
289
|
+
t.integer "updater_id"
|
290
|
+
t.text "cached_tag_list"
|
291
|
+
t.string "reset_password_token"
|
292
|
+
t.datetime "reset_password_sent_at"
|
293
|
+
end
|
294
|
+
|
295
|
+
add_index "alchemy_users", ["email"], :name => "index_alchemy_users_on_email", :unique => true
|
296
|
+
add_index "alchemy_users", ["login"], :name => "index_alchemy_users_on_login", :unique => true
|
297
|
+
add_index "alchemy_users", ["reset_password_token"], :name => "index_alchemy_users_on_reset_password_token", :unique => true
|
298
|
+
add_index "alchemy_users", ["roles"], :name => "index_alchemy_users_on_roles"
|
299
|
+
|
300
|
+
create_table "events", :force => true do |t|
|
301
|
+
t.string "name"
|
302
|
+
t.string "hidden_name"
|
303
|
+
t.datetime "starts_at"
|
304
|
+
t.datetime "ends_at"
|
305
|
+
t.text "description"
|
306
|
+
t.decimal "entrance_fee", :precision => 6, :scale => 2
|
307
|
+
t.boolean "published"
|
308
|
+
t.integer "location_id"
|
309
|
+
t.datetime "created_at", :null => false
|
310
|
+
t.datetime "updated_at", :null => false
|
311
|
+
end
|
312
|
+
|
313
|
+
create_table "locations", :force => true do |t|
|
314
|
+
t.string "name"
|
315
|
+
t.datetime "created_at", :null => false
|
316
|
+
t.datetime "updated_at", :null => false
|
317
|
+
end
|
318
|
+
|
319
|
+
create_table "taggings", :force => true do |t|
|
320
|
+
t.integer "tag_id"
|
321
|
+
t.integer "taggable_id"
|
322
|
+
t.string "taggable_type"
|
323
|
+
t.integer "tagger_id"
|
324
|
+
t.string "tagger_type"
|
325
|
+
t.string "context"
|
326
|
+
t.datetime "created_at"
|
327
|
+
end
|
328
|
+
|
329
|
+
add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
|
330
|
+
add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
|
331
|
+
|
332
|
+
create_table "tags", :force => true do |t|
|
333
|
+
t.string "name"
|
334
|
+
end
|
335
|
+
|
336
|
+
end
|
337
|
+
end
|