refinerycms-copywriting 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/{refinerycms-copywriting-tab.css.scss → refinery/copywriting/backend.css.scss} +4 -0
- data/app/models/refinery/copywriting/phrase.rb +3 -3
- data/app/views/refinery/copywriting/admin/phrases/_form.html.erb +8 -13
- data/app/views/refinery/copywriting/admin/phrases/_locale_filters.html.erb +0 -2
- data/app/views/refinery/copywriting/admin/phrases/_phrases.html.erb +1 -1
- data/app/views/refinery/copywriting/admin/phrases/edit.html.erb +1 -1
- data/app/views/refinery/copywriting/admin/phrases/index.html.erb +4 -4
- data/app/views/refinery/pages/admin/tabs/_copywriting.html.erb +2 -2
- data/config/locales/pl.yml +24 -0
- data/config/locales/ru.yml +24 -0
- data/config/routes.rb +1 -5
- data/db/migrate/2_create_copywriting_translation_table.rb +14 -1
- data/lib/refinery/copywriting/engine.rb +2 -2
- data/spec/models/copywriting_phrase_spec.rb +7 -2
- metadata +5 -67
- data/app/assets/stylesheets/refinerycms-copywriting.css.scss +0 -3
- data/spec/dummy/README.rdoc +0 -261
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/views/sitemap/index.xml.builder +0 -25
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -62
- data/spec/dummy/config/boot.rb +0 -6
- data/spec/dummy/config/database.yml +0 -18
- data/spec/dummy/config/database.yml.mysql +0 -20
- data/spec/dummy/config/database.yml.postgresql +0 -58
- data/spec/dummy/config/database.yml.sqlite3 +0 -18
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -71
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/devise.rb +0 -229
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/refinery/core.rb +0 -48
- data/spec/dummy/config/initializers/refinery/images.rb +0 -41
- data/spec/dummy/config/initializers/refinery/pages.rb +0 -44
- data/spec/dummy/config/initializers/refinery/resources.rb +0 -26
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/db/migrate/20120416115049_create_copywritings.refinery_copywriting.rb +0 -24
- data/spec/dummy/db/migrate/20120416115050_create_copywriting_translation_table.refinery_copywriting.rb +0 -42
- data/spec/dummy/db/migrate/20120416115051_add_phrase_type.refinery_copywriting.rb +0 -12
- data/spec/dummy/db/migrate/20120416115052_add_refinery_prefix_to_tables.refinery_copywriting.rb +0 -14
- data/spec/dummy/db/migrate/20120416115053_add_phrase_last_access_at.refinery_copywriting.rb +0 -12
- data/spec/dummy/db/migrate/20120416115054_create_refinerycms_authentication_schema.refinery_authentication.rb +0 -44
- data/spec/dummy/db/migrate/20120416115055_create_refinerycms_images_schema.refinery_images.rb +0 -16
- data/spec/dummy/db/migrate/20120416115056_create_refinerycms_resources_schema.refinery_resources.rb +0 -14
- data/spec/dummy/db/migrate/20120416115057_create_refinerycms_pages_schema.refinery_pages.rb +0 -59
- data/spec/dummy/db/migrate/20120416115058_create_seo_meta.seo_meta_engine.rb +0 -24
- data/spec/dummy/db/schema.rb +0 -177
- data/spec/dummy/db/seeds.rb +0 -10
- data/spec/dummy/dummy_dev +0 -0
- data/spec/dummy/dummy_test +0 -0
- data/spec/dummy/log/development.log +0 -389
- data/spec/dummy/log/test.log +0 -1894
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/tmp/index/development/refinery/page/102_111_117.ind +0 -2
- data/spec/dummy/tmp/index/development/refinery/page/104_111_109.ind +0 -0
- data/spec/dummy/tmp/index/development/refinery/page/110_111_116.ind +0 -1
- data/spec/dummy/tmp/index/development/refinery/page/112_97_103.ind +0 -0
- data/spec/dummy/tmp/index/development/refinery/page/97_98_111.ind +0 -0
- data/spec/dummy/tmp/index/development/refinery/page/size +0 -1
- data/spec/dummy/tmp/index/development/refinery/page/version +0 -1
- data/spec/dummy/tmp/index/test/refinery/page/112_97_103.ind +0 -1
- data/spec/dummy/tmp/index/test/refinery/page/116_101_115.ind +0 -0
- data/spec/dummy/tmp/index/test/refinery/page/size +0 -1
- data/spec/dummy/tmp/index/test/refinery/page/version +0 -1
@@ -1,15 +0,0 @@
|
|
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
|
11
|
-
#
|
12
|
-
# These inflection rules are supported but not enabled by default:
|
13
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
-
# inflect.acronym 'RESTful'
|
15
|
-
# end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
Refinery::Core.configure do |config|
|
2
|
-
# When true will rescue all not found errors and display a friendly error page
|
3
|
-
config.rescue_not_found = Rails.env.production?
|
4
|
-
|
5
|
-
# When true will use Amazon's Simple Storage Service instead of
|
6
|
-
# the default file system for storing resources and images
|
7
|
-
config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
|
8
|
-
|
9
|
-
# Whenever Refinery caches anything and can set a cache key, it will add
|
10
|
-
# a prefix to the cache key containing the string you set here.
|
11
|
-
# config.base_cache_key = :refinery
|
12
|
-
|
13
|
-
# Site name
|
14
|
-
# config.site_name = "Company Name"
|
15
|
-
|
16
|
-
# This activates Google Analytics tracking within your website. If this
|
17
|
-
# config is left blank or set to UA-xxxxxx-x then no remote calls to
|
18
|
-
# Google Analytics are made.
|
19
|
-
# config.google_analytics_page_code = "UA-xxxxxx-x"
|
20
|
-
|
21
|
-
# Enable/disable authenticity token on frontend
|
22
|
-
# config.authenticity_token_on_frontend = true
|
23
|
-
|
24
|
-
# Hide/show child pages in menu
|
25
|
-
# config.menu_hide_children = false
|
26
|
-
|
27
|
-
# CSS class selectors for menu helper
|
28
|
-
# config.menu_css = {:selected=>"selected", :first=>"first", :last=>"last"}
|
29
|
-
|
30
|
-
# Should set this if concerned about DOS attacks. See
|
31
|
-
# http://markevans.github.com/dragonfly/file.Configuration.html#Configuration
|
32
|
-
# config.dragonfly_secret = "f86bc1e5c80941dd9b34b03c40416a7b67051959467fbb85"
|
33
|
-
|
34
|
-
# Show/hide IE6 upgrade message in the backend
|
35
|
-
# config.ie6_upgrade_message_enabled = true
|
36
|
-
|
37
|
-
# Show/hide browser update message in the backend
|
38
|
-
# config.show_internet_explorer_upgrade_message = false
|
39
|
-
|
40
|
-
# Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}}
|
41
|
-
# config.wymeditor_whitelist_tags = {}
|
42
|
-
|
43
|
-
# Register extra javascript for backend
|
44
|
-
# config.register_javascript "prototype-rails"
|
45
|
-
|
46
|
-
# Register extra stylesheet for backend (optional options)
|
47
|
-
# config.register_stylesheet "custom", :media => 'screen'
|
48
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
Refinery::Images.configure do |config|
|
2
|
-
# Configures the maximum allowed upload size (in bytes) for an image
|
3
|
-
# config.max_image_size = 5242880
|
4
|
-
|
5
|
-
# Configure how many images per page should be displayed when a dialog is presented that contains images
|
6
|
-
# config.pages_per_dialog = 18
|
7
|
-
|
8
|
-
# Configure how many images per page should be displayed when a dialog is presented that
|
9
|
-
# contains images and image resize options
|
10
|
-
# config.pages_per_dialog_that_have_size_options = 12
|
11
|
-
|
12
|
-
# Configure how many images per page should be displayed in the list of images in the admin area
|
13
|
-
# config.pages_per_admin_index = 20
|
14
|
-
|
15
|
-
# Configure image sizes
|
16
|
-
# config.user_image_sizes = {:small=>"110x110>", :medium=>"225x255>", :large=>"450x450>"}
|
17
|
-
|
18
|
-
# Configure image view options
|
19
|
-
# config.image_views = [:grid, :list]
|
20
|
-
|
21
|
-
# Configure default image view
|
22
|
-
# config.preferred_image_view = :grid
|
23
|
-
|
24
|
-
# Configure S3 (you can also use ENV for this)
|
25
|
-
# The s3_backend setting by default defers to the core setting for this but can be set just for images.
|
26
|
-
# config.s3_backend = Refinery::Core.s3_backend
|
27
|
-
# config.s3_bucket_name = ENV['S3_BUCKET']
|
28
|
-
# config.s3_access_key_id = ENV['S3_KEY']
|
29
|
-
# config.s3_secret_access_key = ENV['S3_SECRET']
|
30
|
-
# config.s3_region = ENV['S3_REGION]
|
31
|
-
|
32
|
-
# Configure Dragonfly
|
33
|
-
# This is where in the middleware stack to insert the Dragonfly middleware
|
34
|
-
# config.dragonfly_insert_before = "ActionDispatch::Callbacks"
|
35
|
-
# config.dragonfly_secret = "f86bc1e5c80941dd9b34b03c40416a7b67051959467fbb85"
|
36
|
-
# If you decide to trust file extensions replace :ext below with :format
|
37
|
-
# config.dragonfly_url_format = "/system/images/:job/:basename.:ext"
|
38
|
-
# config.datastore_root_path = nil
|
39
|
-
# config.trust_file_extensions = false
|
40
|
-
|
41
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
Refinery::Pages.configure do |config|
|
2
|
-
# Configure specific page templates
|
3
|
-
# config.types.register :home do |home|
|
4
|
-
# home.parts = %w[intro body]
|
5
|
-
# end
|
6
|
-
|
7
|
-
# Configure global page default parts
|
8
|
-
# config.default_parts = ["Body", "Side Body"]
|
9
|
-
|
10
|
-
# Configure how many pages per page should be displayed when a dialog is presented that contains a links to pages
|
11
|
-
# config.pages_per_dialog = 14
|
12
|
-
|
13
|
-
# Configure how many pages per page should be displayed in the list of pages in the admin area
|
14
|
-
# config.pages_per_admin_index = 20
|
15
|
-
|
16
|
-
# Configure whether to strip diacritics from Western characters
|
17
|
-
# config.approximate_ascii = false
|
18
|
-
|
19
|
-
# Configure whether to strip non-ASCII characters from the friendly_id string
|
20
|
-
# config.strip_non_ascii = false
|
21
|
-
|
22
|
-
# Set this to true if you want to override slug which automatically gets generated
|
23
|
-
# when you create a page
|
24
|
-
# config.use_custom_slugs = false
|
25
|
-
|
26
|
-
# Set this to true if you want backend pages to be cached
|
27
|
-
# config.cache_pages_backend = false
|
28
|
-
|
29
|
-
# Set this to true to activate full-page-cache
|
30
|
-
# config.cache_pages_full = false
|
31
|
-
|
32
|
-
# Set this to true to fully expand the page hierarchy in the admin
|
33
|
-
# config.auto_expand_admin_tree = true
|
34
|
-
|
35
|
-
# config.layout_template_whitelist = ["application"]
|
36
|
-
|
37
|
-
# config.view_template_whitelist = ["home", "show"]
|
38
|
-
|
39
|
-
# config.use_layout_templates = false
|
40
|
-
|
41
|
-
# config.use_view_templates = false
|
42
|
-
|
43
|
-
# config.absolute_page_links = false
|
44
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
Refinery::Resources.configure do |config|
|
2
|
-
# Configures the maximum allowed upload size (in bytes) for a file upload
|
3
|
-
# config.max_file_size = 52428800
|
4
|
-
|
5
|
-
# Configure how many resources per page should be displayed when a dialog is presented that contains resources
|
6
|
-
# config.pages_per_dialog = 12
|
7
|
-
|
8
|
-
# Configure how many resources per page should be displayed in the list of resources in the admin area
|
9
|
-
# config.pages_per_admin_index = 20
|
10
|
-
|
11
|
-
# Configure S3 (you can also use ENV for this)
|
12
|
-
# The s3_backend setting by default defers to the core setting for this but can be set just for resources.
|
13
|
-
# config.s3_backend = Refinery::Core.s3_backend
|
14
|
-
# config.s3_bucket_name = ENV['S3_BUCKET']
|
15
|
-
# config.s3_access_key_id = ENV['S3_KEY']
|
16
|
-
# config.s3_secret_access_key = ENV['S3_SECRET']
|
17
|
-
# config.s3_region = ENV['S3_REGION]
|
18
|
-
|
19
|
-
# Configure Dragonfly
|
20
|
-
# This is where in the middleware stack to insert the Dragonfly middleware
|
21
|
-
# config.dragonfly_insert_before = "ActionDispatch::Callbacks"
|
22
|
-
# config.dragonfly_secret = "f86bc1e5c80941dd9b34b03c40416a7b67051959467fbb85"
|
23
|
-
# config.dragonfly_url_format = "/system/resources/:job/:basename.:format"
|
24
|
-
# config.datastore_root_path = nil
|
25
|
-
|
26
|
-
end
|
@@ -1,7 +0,0 @@
|
|
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 = 'bbffdbd0eedb482db8aa89da83832728336e38033add1d6c27a2563671e7b71f026eaf8932fefe43173d4f2b330a236f6c31c2f187236a250e5bb267c778c1b7'
|
@@ -1,8 +0,0 @@
|
|
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
|
@@ -1,14 +0,0 @@
|
|
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]
|
9
|
-
end
|
10
|
-
|
11
|
-
# Disable root element in JSON by default.
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
self.include_root_in_json = false
|
14
|
-
end
|
data/spec/dummy/config/routes.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_copywriting (originally 1)
|
2
|
-
class CreateCopywritings < ActiveRecord::Migration
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
create_table :copywriting_phrases do |t|
|
6
|
-
t.string :name
|
7
|
-
t.text :default
|
8
|
-
t.text :value
|
9
|
-
t.string :scope
|
10
|
-
t.integer :page_id
|
11
|
-
|
12
|
-
t.timestamps
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :copywriting_phrases, [:name, :scope]
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.down
|
19
|
-
Refinery::UserPlugin.destroy_all({:name => "refinerycms_copywriting"})
|
20
|
-
|
21
|
-
drop_table :copywriting_phrases
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_copywriting (originally 2)
|
2
|
-
class CreateCopywritingTranslationTable < ActiveRecord::Migration
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
::Refinery::Copywriting::Phrase.table_name = Refinery::Copywriting::Phrase.table_name.sub('refinery_', '')
|
6
|
-
::Refinery::Copywriting::Phrase.module_eval do
|
7
|
-
has_many :translations, :foreign_key => 'copywriting_phrase_id'
|
8
|
-
end
|
9
|
-
::Refinery::Copywriting::Phrase.translation_class.table_name = Refinery::Copywriting::Phrase.translation_class.table_name.sub('refinery_', '')
|
10
|
-
|
11
|
-
::Refinery::Copywriting::Phrase.create_translation_table!({
|
12
|
-
:value => :text
|
13
|
-
}, {
|
14
|
-
:migrate_data => true
|
15
|
-
})
|
16
|
-
|
17
|
-
rename_column Refinery::Copywriting::Phrase.translation_class.table_name, :copywriting_phrase_id, :refinery_copywriting_phrase_id
|
18
|
-
|
19
|
-
::Refinery::Copywriting::Phrase.table_name = "refinery_#{Refinery::Copywriting::Phrase.table_name}"
|
20
|
-
::Refinery::Copywriting::Phrase.module_eval do
|
21
|
-
has_many :translations, :foreign_key => 'refinery_copywriting_phrase_id'
|
22
|
-
end
|
23
|
-
::Refinery::Copywriting::Phrase.translation_class.table_name = "refinery_#{Refinery::Copywriting::Phrase.translation_class.table_name}"
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.down
|
27
|
-
::Refinery::Copywriting::Phrase.table_name = Refinery::Copywriting::Phrase.table_name.sub('refinery_', '')
|
28
|
-
::Refinery::Copywriting::Phrase.module_eval do
|
29
|
-
has_many :translations, :foreign_key => 'refinery_copywriting_phrase_id'
|
30
|
-
end
|
31
|
-
::Refinery::Copywriting::Phrase.translation_class.table_name = Refinery::Copywriting::Phrase.translation_class.table_name.sub('refinery_', '')
|
32
|
-
|
33
|
-
::Refinery::Copywriting::Phrase.drop_translation_table! :migrate_data => true
|
34
|
-
|
35
|
-
::Refinery::Copywriting::Phrase.table_name = "refinery_#{Refinery::Copywriting::Phrase.table_name}"
|
36
|
-
::Refinery::Copywriting::Phrase.module_eval do
|
37
|
-
has_many :translations, :foreign_key => 'copywriting_phrase_id'
|
38
|
-
end
|
39
|
-
::Refinery::Copywriting::Phrase.translation_class.table_name = "refinery_#{Refinery::Copywriting::Phrase.translation_class.table_name}"
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_copywriting (originally 3)
|
2
|
-
class AddPhraseType < ActiveRecord::Migration
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
add_column :copywriting_phrases, :phrase_type, :string
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.down
|
9
|
-
remove_column :copywriting_phrases, :phrase_type
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
data/spec/dummy/db/migrate/20120416115052_add_refinery_prefix_to_tables.refinery_copywriting.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_copywriting (originally 4)
|
2
|
-
class AddRefineryPrefixToTables < ActiveRecord::Migration
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
rename_table :copywriting_phrases, :refinery_copywriting_phrases
|
6
|
-
rename_table :copywriting_phrase_translations, :refinery_copywriting_phrase_translations
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.down
|
10
|
-
rename_table :refinery_copywriting_phrases, :copywriting_phrases
|
11
|
-
rename_table :refinery_copywriting_phrase_translations, :copywriting_phrase_translations
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_copywriting (originally 5)
|
2
|
-
class AddPhraseLastAccessAt < ActiveRecord::Migration
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
add_column Refinery::Copywriting::Phrase.table_name, :last_access_at, :date
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.down
|
9
|
-
remove_column Refinery::Copywriting::Phrase.table_name, :last_access_at
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_authentication (originally 20100913234705)
|
2
|
-
class CreateRefinerycmsAuthenticationSchema < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
# Postgres apparently requires the roles_users table to exist before creating the roles table.
|
5
|
-
create_table :refinery_roles_users, :id => false do |t|
|
6
|
-
t.integer :user_id
|
7
|
-
t.integer :role_id
|
8
|
-
end
|
9
|
-
|
10
|
-
add_index :refinery_roles_users, [:role_id, :user_id]
|
11
|
-
add_index :refinery_roles_users, [:user_id, :role_id]
|
12
|
-
|
13
|
-
create_table :refinery_roles do |t|
|
14
|
-
t.string :title
|
15
|
-
end
|
16
|
-
|
17
|
-
create_table :refinery_user_plugins do |t|
|
18
|
-
t.integer :user_id
|
19
|
-
t.string :name
|
20
|
-
t.integer :position
|
21
|
-
end
|
22
|
-
|
23
|
-
add_index :refinery_user_plugins, :name
|
24
|
-
add_index :refinery_user_plugins, [:user_id, :name], :unique => true
|
25
|
-
|
26
|
-
create_table :refinery_users do |t|
|
27
|
-
t.string :username, :null => false
|
28
|
-
t.string :email, :null => false
|
29
|
-
t.string :encrypted_password, :null => false
|
30
|
-
t.datetime :current_sign_in_at
|
31
|
-
t.datetime :last_sign_in_at
|
32
|
-
t.string :current_sign_in_ip
|
33
|
-
t.string :last_sign_in_ip
|
34
|
-
t.integer :sign_in_count
|
35
|
-
t.datetime :remember_created_at
|
36
|
-
t.string :reset_password_token
|
37
|
-
t.datetime :reset_password_sent_at
|
38
|
-
|
39
|
-
t.timestamps
|
40
|
-
end
|
41
|
-
|
42
|
-
add_index :refinery_users, :id
|
43
|
-
end
|
44
|
-
end
|
data/spec/dummy/db/migrate/20120416115055_create_refinerycms_images_schema.refinery_images.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_images (originally 20100913234707)
|
2
|
-
class CreateRefinerycmsImagesSchema < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table :refinery_images do |t|
|
5
|
-
t.string :image_mime_type
|
6
|
-
t.string :image_name
|
7
|
-
t.integer :image_size
|
8
|
-
t.integer :image_width
|
9
|
-
t.integer :image_height
|
10
|
-
t.string :image_uid
|
11
|
-
t.string :image_ext
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
data/spec/dummy/db/migrate/20120416115056_create_refinerycms_resources_schema.refinery_resources.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_resources (originally 20100913234709)
|
2
|
-
class CreateRefinerycmsResourcesSchema < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table :refinery_resources do |t|
|
5
|
-
t.string :file_mime_type
|
6
|
-
t.string :file_name
|
7
|
-
t.integer :file_size
|
8
|
-
t.string :file_uid
|
9
|
-
t.string :file_ext
|
10
|
-
|
11
|
-
t.timestamps
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# This migration comes from refinery_pages (originally 20100913234708)
|
2
|
-
class CreateRefinerycmsPagesSchema < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
create_table :refinery_page_parts do |t|
|
5
|
-
t.integer :refinery_page_id
|
6
|
-
t.string :title
|
7
|
-
t.text :body
|
8
|
-
t.integer :position
|
9
|
-
|
10
|
-
t.timestamps
|
11
|
-
end
|
12
|
-
|
13
|
-
add_index :refinery_page_parts, :id
|
14
|
-
add_index :refinery_page_parts, :refinery_page_id
|
15
|
-
|
16
|
-
create_table :refinery_pages do |t|
|
17
|
-
t.integer :parent_id
|
18
|
-
t.string :path
|
19
|
-
t.string :slug
|
20
|
-
t.boolean :show_in_menu, :default => true
|
21
|
-
t.string :link_url
|
22
|
-
t.string :menu_match
|
23
|
-
t.boolean :deletable, :default => true
|
24
|
-
t.boolean :draft, :default => false
|
25
|
-
t.boolean :skip_to_first_child, :default => false
|
26
|
-
t.integer :lft
|
27
|
-
t.integer :rgt
|
28
|
-
t.integer :depth
|
29
|
-
t.string :view_template
|
30
|
-
t.string :layout_template
|
31
|
-
|
32
|
-
t.timestamps
|
33
|
-
end
|
34
|
-
|
35
|
-
add_index :refinery_pages, :depth
|
36
|
-
add_index :refinery_pages, :id
|
37
|
-
add_index :refinery_pages, :lft
|
38
|
-
add_index :refinery_pages, :parent_id
|
39
|
-
add_index :refinery_pages, :rgt
|
40
|
-
|
41
|
-
Refinery::PagePart.create_translation_table!({
|
42
|
-
:body => :text
|
43
|
-
})
|
44
|
-
|
45
|
-
Refinery::Page.create_translation_table!({
|
46
|
-
:title => :string,
|
47
|
-
:custom_slug => :string,
|
48
|
-
:menu_title => :string,
|
49
|
-
:slug => :string
|
50
|
-
})
|
51
|
-
end
|
52
|
-
|
53
|
-
def down
|
54
|
-
drop_table :refinery_page_parts
|
55
|
-
drop_table :refinery_pages
|
56
|
-
Refinery::PagePart.drop_translation_table!
|
57
|
-
Refinery::Page.drop_translation_table!
|
58
|
-
end
|
59
|
-
end
|