slugs 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +34 -0
  4. data/Rakefile +32 -0
  5. data/lib/slugs/active_record/base.rb +76 -0
  6. data/lib/slugs/active_record/non_translatable.rb +30 -0
  7. data/lib/slugs/active_record/relation.rb +18 -0
  8. data/lib/slugs/active_record/translatable.rb +53 -0
  9. data/lib/slugs/railtie.rb +10 -0
  10. data/lib/slugs/version.rb +5 -0
  11. data/lib/slugs.rb +9 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/javascripts/application.js +13 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/helpers/application_helper.rb +2 -0
  18. data/test/dummy/app/models/simple.rb +5 -0
  19. data/test/dummy/app/models/translatable.rb +7 -0
  20. data/test/dummy/app/models/translatable_translation.rb +9 -0
  21. data/test/dummy/app/models/without.rb +2 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/test/dummy/bin/bundle +3 -0
  24. data/test/dummy/bin/rails +4 -0
  25. data/test/dummy/bin/rake +4 -0
  26. data/test/dummy/config/application.rb +23 -0
  27. data/test/dummy/config/boot.rb +5 -0
  28. data/test/dummy/config/database.yml +25 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +29 -0
  31. data/test/dummy/config/environments/production.rb +80 -0
  32. data/test/dummy/config/environments/test.rb +36 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/test/dummy/config/initializers/inflections.rb +16 -0
  36. data/test/dummy/config/initializers/mime_types.rb +5 -0
  37. data/test/dummy/config/initializers/secret_token.rb +12 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy/config/locales/en.yml +23 -0
  41. data/test/dummy/config/routes.rb +56 -0
  42. data/test/dummy/config.ru +4 -0
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/migrate/20130819183013_create_simples.rb +11 -0
  45. data/test/dummy/db/migrate/20130819183047_create_withouts.rb +9 -0
  46. data/test/dummy/db/migrate/20130819183119_create_translatables.rb +9 -0
  47. data/test/dummy/db/migrate/20130819183257_create_translatable_translations.rb +15 -0
  48. data/test/dummy/db/schema.rb +49 -0
  49. data/test/dummy/db/test.sqlite3 +0 -0
  50. data/test/dummy/log/development.log +169 -0
  51. data/test/dummy/log/test.log +1143 -0
  52. data/test/dummy/public/404.html +58 -0
  53. data/test/dummy/public/422.html +58 -0
  54. data/test/dummy/public/500.html +57 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/records_test.rb +78 -0
  57. data/test/test_helper.rb +21 -0
  58. metadata +174 -0
@@ -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 = '9c3fdbe4ad05cd861c28b88f90272c74a5ee9bbc4d7aaa9ca9685303726f61228bac98672426242abe35c78e3b37517702862a399e65bf75a78d00ac9585e0b5'
@@ -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,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
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,11 @@
1
+ class CreateSimples < ActiveRecord::Migration
2
+ def change
3
+ create_table :simples do |t|
4
+ t.string :name
5
+ t.integer :age
6
+ t.string :slug
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ class CreateWithouts < ActiveRecord::Migration
2
+ def change
3
+ create_table :withouts do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateTranslatables < ActiveRecord::Migration
2
+ def change
3
+ create_table :translatables do |t|
4
+ t.string :dummy
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ class CreateTranslatableTranslations < ActiveRecord::Migration
2
+ def change
3
+ create_table :translatable_translations do |t|
4
+ t.integer :translatable_id
5
+ t.string :locale
6
+ t.string :name
7
+ t.string :slug
8
+ t.integer :age
9
+
10
+ t.timestamps
11
+ end
12
+ add_index :translatable_translations, :translatable_id
13
+ add_index :translatable_translations, :locale
14
+ end
15
+ end
@@ -0,0 +1,49 @@
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: 20130819183257) do
15
+
16
+ create_table "simples", force: true do |t|
17
+ t.string "name"
18
+ t.integer "age"
19
+ t.string "slug"
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
+ end
23
+
24
+ create_table "translatable_translations", force: true do |t|
25
+ t.integer "translatable_id"
26
+ t.string "locale"
27
+ t.string "name"
28
+ t.string "slug"
29
+ t.integer "age"
30
+ t.datetime "created_at"
31
+ t.datetime "updated_at"
32
+ end
33
+
34
+ add_index "translatable_translations", ["locale"], name: "index_translatable_translations_on_locale"
35
+ add_index "translatable_translations", ["translatable_id"], name: "index_translatable_translations_on_translatable_id"
36
+
37
+ create_table "translatables", force: true do |t|
38
+ t.string "dummy"
39
+ t.datetime "created_at"
40
+ t.datetime "updated_at"
41
+ end
42
+
43
+ create_table "withouts", force: true do |t|
44
+ t.string "name"
45
+ t.datetime "created_at"
46
+ t.datetime "updated_at"
47
+ end
48
+
49
+ end
Binary file
@@ -0,0 +1,169 @@
1
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateSimples (20130819183013)
5
+  (0.1ms) begin transaction
6
+  (0.3ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183013"]]
8
+  (3.4ms) commit transaction
9
+ Migrating to CreateWithouts (20130819183047)
10
+  (0.1ms) begin transaction
11
+  (0.3ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
12
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183047"]]
13
+  (3.2ms) commit transaction
14
+ Migrating to CreateTranslatables (20130819183119)
15
+  (0.1ms) begin transaction
16
+  (0.3ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
17
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183119"]]
18
+  (3.1ms) commit transaction
19
+ Migrating to CreateTranslatableTranslations (20130819183257)
20
+  (0.1ms) begin transaction
21
+  (0.3ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) 
22
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
23
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
24
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183257"]]
25
+  (3.3ms) commit transaction
26
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
+  (52.6ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
28
+  (3.4ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "created_at" datetime, "updated_at" datetime)
29
+  (3.8ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
30
+  (4.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
31
+  (3.9ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
32
+  (3.0ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
33
+  (2.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
34
+  (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35
+  (0.2ms) SELECT version FROM "schema_migrations"
36
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')
37
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183013')
38
+  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183047')
39
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183119')
40
+  (48.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
41
+  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
42
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+ Migrating to CreateSimples (20130819183013)
44
+  (0.1ms) begin transaction
45
+  (0.4ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
46
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183013"]]
47
+  (3.2ms) commit transaction
48
+ Migrating to CreateWithouts (20130819183047)
49
+  (0.1ms) begin transaction
50
+  (0.3ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
51
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183047"]]
52
+  (3.1ms) commit transaction
53
+ Migrating to CreateTranslatables (20130819183119)
54
+  (0.1ms) begin transaction
55
+  (0.4ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
56
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183119"]]
57
+  (3.8ms) commit transaction
58
+ Migrating to CreateTranslatableTranslations (20130819183257)
59
+  (0.1ms) begin transaction
60
+  (0.4ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime) 
61
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
62
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
63
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183257"]]
64
+  (3.1ms) commit transaction
65
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+  (52.8ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
67
+  (3.3ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
68
+  (3.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
69
+  (3.7ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
70
+  (3.3ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
71
+  (3.1ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
72
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
73
+  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
74
+  (0.1ms) SELECT version FROM "schema_migrations"
75
+  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')
76
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183013')
77
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183047')
78
+  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183119')
79
+  (55.0ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
80
+  (3.4ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
81
+  (2.9ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
82
+  (4.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
83
+  (2.8ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
84
+  (3.2ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
85
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
86
+  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
87
+  (0.1ms) SELECT version FROM "schema_migrations"
88
+  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')
89
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183013')
90
+  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183047')
91
+  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183119')
92
+  (52.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
93
+  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
94
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
95
+ Migrating to CreateSimples (20130819183013)
96
+  (0.1ms) begin transaction
97
+  (0.6ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
98
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183013"]]
99
+  (4.4ms) commit transaction
100
+ Migrating to CreateWithouts (20130819183047)
101
+  (0.1ms) begin transaction
102
+  (0.3ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
103
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183047"]]
104
+  (3.5ms) commit transaction
105
+ Migrating to CreateTranslatables (20130819183119)
106
+  (0.1ms) begin transaction
107
+  (0.3ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
108
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183119"]]
109
+  (3.2ms) commit transaction
110
+ Migrating to CreateTranslatableTranslations (20130819183257)
111
+  (0.1ms) begin transaction
112
+  (0.3ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime) 
113
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
114
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
115
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183257"]]
116
+  (3.3ms) commit transaction
117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
118
+  (54.4ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
119
+  (3.9ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
120
+  (3.2ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
121
+  (2.9ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
122
+  (4.5ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
123
+  (2.7ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
124
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
125
+  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
126
+  (0.2ms) SELECT version FROM "schema_migrations"
127
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')
128
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183013')
129
+  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183047')
130
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183119')
131
+  (58.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
132
+  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
133
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
134
+ Migrating to CreateSimples (20130819183013)
135
+  (0.1ms) begin transaction
136
+  (0.5ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
137
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183013"]]
138
+  (4.5ms) commit transaction
139
+ Migrating to CreateWithouts (20130819183047)
140
+  (0.1ms) begin transaction
141
+  (0.3ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
142
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183047"]]
143
+  (3.2ms) commit transaction
144
+ Migrating to CreateTranslatables (20130819183119)
145
+  (0.1ms) begin transaction
146
+  (0.3ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
147
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183119"]]
148
+  (3.0ms) commit transaction
149
+ Migrating to CreateTranslatableTranslations (20130819183257)
150
+  (0.1ms) begin transaction
151
+  (0.4ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime) 
152
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
153
+  (0.1ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
154
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130819183257"]]
155
+  (3.0ms) commit transaction
156
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
157
+  (2.6ms) CREATE TABLE "simples" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "slug" varchar(255), "created_at" datetime, "updated_at" datetime) 
158
+  (2.9ms) CREATE TABLE "translatable_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "translatable_id" integer, "locale" varchar(255), "name" varchar(255), "slug" varchar(255), "age" integer, "created_at" datetime, "updated_at" datetime)
159
+  (2.9ms) CREATE INDEX "index_translatable_translations_on_locale" ON "translatable_translations" ("locale")
160
+  (2.8ms) CREATE INDEX "index_translatable_translations_on_translatable_id" ON "translatable_translations" ("translatable_id")
161
+  (2.7ms) CREATE TABLE "translatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dummy" varchar(255), "created_at" datetime, "updated_at" datetime) 
162
+  (2.8ms) CREATE TABLE "withouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
163
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
164
+  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
165
+  (0.1ms) SELECT version FROM "schema_migrations"
166
+  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183257')
167
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183013')
168
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183047')
169
+  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130819183119')