translatable_records 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +52 -0
- data/Rakefile +32 -0
- data/lib/generators/templates/migration.rb.erb +12 -0
- data/lib/generators/templates/model.rb.erb +13 -0
- data/lib/generators/translation_generator.rb +21 -0
- data/lib/translatable_records/active_record/base.rb +59 -0
- data/lib/translatable_records/active_record/translatable.rb +30 -0
- data/lib/translatable_records/railtie.rb +9 -0
- data/lib/translatable_records/version.rb +5 -0
- data/lib/translatable_records.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/model.rb +3 -0
- data/test/dummy/app/models/model_translation.rb +9 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130819155126_create_models.rb +8 -0
- data/test/dummy/db/migrate/20130819165249_create_model_translations.rb +13 -0
- data/test/dummy/db/schema.rb +32 -0
- data/test/dummy/log/development.log +170 -0
- data/test/dummy/log/test.log +616 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/generators_test.rb +20 -0
- data/test/records_test.rb +23 -0
- data/test/test_helper.rb +21 -0
- metadata +167 -0
@@ -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 = '7df7e2131e8049bf1397fd7586bd3dfa812f69914f258ee99734a62b8cc16896147a9276e35b6349629341cf1a9b62025e277ea721be144377dbc3979e90a629'
|
@@ -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,56 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreateModelTranslations < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :model_translations do |t|
|
4
|
+
t.integer :model_id
|
5
|
+
t.string :locale
|
6
|
+
t.string :name
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :model_translations, :model_id
|
11
|
+
add_index :model_translations, :locale
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,32 @@
|
|
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: 20130819165249) do
|
15
|
+
|
16
|
+
create_table "model_translations", force: true do |t|
|
17
|
+
t.integer "model_id"
|
18
|
+
t.string "locale"
|
19
|
+
t.string "name"
|
20
|
+
t.datetime "created_at"
|
21
|
+
t.datetime "updated_at"
|
22
|
+
end
|
23
|
+
|
24
|
+
add_index "model_translations", ["locale"], name: "index_model_translations_on_locale"
|
25
|
+
add_index "model_translations", ["model_id"], name: "index_model_translations_on_model_id"
|
26
|
+
|
27
|
+
create_table "models", force: true do |t|
|
28
|
+
t.datetime "created_at"
|
29
|
+
t.datetime "updated_at"
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,170 @@
|
|
1
|
+
DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated. Please use a lambda containing a scope. E.g. scope :red, -> { where(color: 'red') }. (called from make_translatable at /Users/Matt/Documents/Mattways/Emprendimientos/Rails/translatable_records/lib/translatable_records/active_record/base.rb:24)
|
2
|
+
DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated. Please use a lambda containing a scope. E.g. scope :red, -> { where(color: 'red') }. (called from make_translatable at /Users/Matt/Documents/Mattways/Emprendimientos/Rails/translatable_records/lib/translatable_records/active_record/base.rb:24)
|
3
|
+
DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated. Please use a lambda containing a scope. E.g. scope :red, -> { where(color: 'red') }. (called from make_translatable at /Users/Matt/Documents/Mattways/Emprendimientos/Rails/translatable_records/lib/translatable_records/active_record/base.rb:24)
|
4
|
+
DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated. Please use a lambda containing a scope. E.g. scope :red, -> { where(color: 'red') }. (called from make_translatable at /Users/Matt/Documents/Mattways/Emprendimientos/Rails/translatable_records/lib/translatable_records/active_record/base.rb:24)
|
5
|
+
DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated. Please use a lambda containing a scope. E.g. scope :red, -> { where(color: 'red') }. (called from make_translatable at /Users/Matt/Documents/Mattways/Emprendimientos/Rails/translatable_records/lib/translatable_records/active_record/base.rb:24)
|
6
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
+
[1m[35m (3.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
+
Migrating to CreateModels (20130819155126)
|
10
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
12
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
|
13
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
14
|
+
Migrating to CreateModelsTranslation (20130819160808)
|
15
|
+
DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated. Please use a lambda containing a scope. E.g. scope :red, -> { where(color: 'red') }. (called from make_translatable at /Users/Matt/Documents/Mattways/Emprendimientos/Rails/translatable_records/lib/translatable_records/active_record/base.rb:24)
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
+
Migrating to CreateModelTranslations (20130819160941)
|
18
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
20
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
21
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
22
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
23
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
24
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819160941"]]
|
25
|
+
[1m[36m (51.2ms)[0m [1mcommit transaction[0m
|
26
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
29
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
30
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
31
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
32
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
33
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
34
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
35
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
36
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
37
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
38
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819160941')
|
39
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
40
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
41
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
42
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
43
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
44
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
45
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
46
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
47
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
48
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
49
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
50
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
51
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819160941')
|
52
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
53
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
54
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
55
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
56
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
57
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
58
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
59
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
60
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
61
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
62
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819160941')
|
63
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
64
|
+
[1m[36m (50.2ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
65
|
+
[1m[35m (2.9ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
66
|
+
[1m[36m (2.5ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
67
|
+
[1m[35m (2.7ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
68
|
+
[1m[36m (2.6ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
69
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
70
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
71
|
+
[1m[35m (3.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
72
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
73
|
+
[1m[35m (3.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819160941')
|
74
|
+
[1m[36m (2.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
75
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
76
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
77
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
78
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
79
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
80
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
81
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
82
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
83
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
84
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
85
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819160941')
|
86
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
87
|
+
[1m[36m (54.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
88
|
+
[1m[35m (2.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
89
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
90
|
+
Migrating to CreateModels (20130819155126)
|
91
|
+
[1m[35m (0.1ms)[0m begin transaction
|
92
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
93
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
|
94
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
95
|
+
Migrating to CreateModelTranslations (20130819160941)
|
96
|
+
[1m[35m (0.1ms)[0m begin transaction
|
97
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
98
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
99
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
100
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_created_at" ON "model_translations" ("created_at")
|
101
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_updated_at" ON "model_translations" ("updated_at")[0m
|
102
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819160941"]]
|
103
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
104
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
105
|
+
[1m[36m (52.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
106
|
+
[1m[35m (3.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
108
|
+
Migrating to CreateModels (20130819155126)
|
109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
110
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
111
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
|
112
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
113
|
+
Migrating to CreateModelTranslations (20130819160941)
|
114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
115
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
116
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
117
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
118
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819160941"]]
|
119
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
120
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
121
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
122
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
123
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
124
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
125
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
126
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
127
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
128
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819160941')
|
129
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|
130
|
+
[1m[36m (58.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
131
|
+
[1m[35m (2.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
132
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
133
|
+
Migrating to CreateModels (20130819155126)
|
134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
135
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
136
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
|
137
|
+
[1m[36m (3.9ms)[0m [1mcommit transaction[0m
|
138
|
+
Migrating to CreateModelTranslations (20130819165249)
|
139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
141
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
142
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
143
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819165249"]]
|
144
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
145
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
146
|
+
[1m[36m (54.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
147
|
+
[1m[35m (3.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
148
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
149
|
+
Migrating to CreateModels (20130819155126)
|
150
|
+
[1m[35m (0.1ms)[0m begin transaction
|
151
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
152
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819155126"]]
|
153
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
154
|
+
Migrating to CreateModelTranslations (20130819165249)
|
155
|
+
[1m[35m (0.1ms)[0m begin transaction
|
156
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
157
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")
|
158
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")[0m
|
159
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819165249"]]
|
160
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
161
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
162
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "model_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" integer, "locale" varchar(255), "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
163
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_model_translations_on_locale" ON "model_translations" ("locale")
|
164
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_model_translations_on_model_id" ON "model_translations" ("model_id")[0m
|
165
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
166
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
167
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
168
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
169
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130819165249')
|
170
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130819155126')[0m
|