user_stamp 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +65 -0
  4. data/Rakefile +40 -0
  5. data/config/routes.rb +28 -0
  6. data/lib/generators/user_stamp/USAGE +9 -0
  7. data/lib/generators/user_stamp/templates/user_stamp.template +26 -0
  8. data/lib/generators/user_stamp/user_stamp_generator.rb +34 -0
  9. data/lib/tasks/user_stamp_tasks.rake +4 -0
  10. data/lib/user_stamp.rb +36 -0
  11. data/lib/user_stamp/app_controller.rb +40 -0
  12. data/lib/user_stamp/config.rb +60 -0
  13. data/lib/user_stamp/engine.rb +37 -0
  14. data/lib/user_stamp/user.rb +41 -0
  15. data/lib/user_stamp/user_stamp.rb +62 -0
  16. data/lib/user_stamp/version.rb +29 -0
  17. data/test/dummy/README.rdoc +261 -0
  18. data/test/dummy/Rakefile +7 -0
  19. data/test/dummy/app/assets/javascripts/application.js +15 -0
  20. data/test/dummy/app/assets/javascripts/materials.js +2 -0
  21. data/test/dummy/app/assets/javascripts/products.js +2 -0
  22. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/test/dummy/app/assets/stylesheets/materials.css +4 -0
  24. data/test/dummy/app/assets/stylesheets/products.css +4 -0
  25. data/test/dummy/app/controllers/application_controller.rb +33 -0
  26. data/test/dummy/app/controllers/materials_controller.rb +83 -0
  27. data/test/dummy/app/controllers/products_controller.rb +83 -0
  28. data/test/dummy/app/helpers/application_helper.rb +28 -0
  29. data/test/dummy/app/helpers/materials_helper.rb +28 -0
  30. data/test/dummy/app/helpers/products_helper.rb +28 -0
  31. data/test/dummy/app/models/material.rb +43 -0
  32. data/test/dummy/app/models/product.rb +40 -0
  33. data/test/dummy/app/models/user.rb +36 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/test/dummy/app/views/materials/_form.html.erb +33 -0
  36. data/test/dummy/app/views/materials/edit.html.erb +6 -0
  37. data/test/dummy/app/views/materials/index.html.erb +29 -0
  38. data/test/dummy/app/views/materials/new.html.erb +6 -0
  39. data/test/dummy/app/views/materials/show.html.erb +28 -0
  40. data/test/dummy/app/views/products/_form.html.erb +33 -0
  41. data/test/dummy/app/views/products/edit.html.erb +6 -0
  42. data/test/dummy/app/views/products/index.html.erb +29 -0
  43. data/test/dummy/app/views/products/new.html.erb +5 -0
  44. data/test/dummy/app/views/products/show.html.erb +25 -0
  45. data/test/dummy/config.ru +4 -0
  46. data/test/dummy/config/application.rb +59 -0
  47. data/test/dummy/config/boot.rb +10 -0
  48. data/test/dummy/config/database.yml +25 -0
  49. data/test/dummy/config/environment.rb +5 -0
  50. data/test/dummy/config/environments/development.rb +37 -0
  51. data/test/dummy/config/environments/production.rb +67 -0
  52. data/test/dummy/config/environments/test.rb +37 -0
  53. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  54. data/test/dummy/config/initializers/devise.rb +259 -0
  55. data/test/dummy/config/initializers/inflections.rb +15 -0
  56. data/test/dummy/config/initializers/mime_types.rb +5 -0
  57. data/test/dummy/config/initializers/secret_token.rb +7 -0
  58. data/test/dummy/config/initializers/session_store.rb +8 -0
  59. data/test/dummy/config/initializers/user_stamp.rb +26 -0
  60. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  61. data/test/dummy/config/locales/devise.en.yml +60 -0
  62. data/test/dummy/config/locales/en.yml +5 -0
  63. data/test/dummy/config/routes.rb +7 -0
  64. data/test/dummy/db/development.sqlite3 +0 -0
  65. data/test/dummy/db/migrate/20150418012302_devise_create_users.rb +43 -0
  66. data/test/dummy/db/migrate/20150418013334_create_products.rb +13 -0
  67. data/test/dummy/db/migrate/20150420023321_create_materials.rb +13 -0
  68. data/test/dummy/db/schema.rb +55 -0
  69. data/test/dummy/db/test.sqlite3 +0 -0
  70. data/test/dummy/log/development.log +168 -0
  71. data/test/dummy/log/test.log +5481 -0
  72. data/test/dummy/public/404.html +26 -0
  73. data/test/dummy/public/422.html +26 -0
  74. data/test/dummy/public/500.html +25 -0
  75. data/test/dummy/public/favicon.ico +0 -0
  76. data/test/dummy/script/rails +6 -0
  77. data/test/dummy/test/functional/materials_controller_test.rb +98 -0
  78. data/test/dummy/test/functional/products_controller_test.rb +99 -0
  79. data/test/dummy/test/unit/helpers/materials_helper_test.rb +30 -0
  80. data/test/dummy/test/unit/helpers/products_helper_test.rb +30 -0
  81. data/test/dummy/test/unit/material_test.rb +33 -0
  82. data/test/dummy/test/unit/product_test.rb +33 -0
  83. data/test/dummy/test/unit/user_test.rb +33 -0
  84. data/test/fixtures/materials.yml +51 -0
  85. data/test/fixtures/products.yml +51 -0
  86. data/test/fixtures/users.yml +40 -0
  87. data/test/integration/navigation_test.rb +10 -0
  88. data/test/test_helper.rb +45 -0
  89. data/test/user_stamp_test.rb +33 -0
  90. metadata +248 -0
@@ -0,0 +1,15 @@
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
@@ -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,7 @@
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 = '5609e6d2d15646dfe14151c0ca04fc688997de2d665a0d9a84353a3553e335bc19b0cdba927745bfe93a9b9705e178c7bf7eb735f5b2d4b8e9800a0298519d1b'
@@ -0,0 +1,8 @@
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
@@ -0,0 +1,26 @@
1
+
2
+ #
3
+ # Initilization file for UserStamp gem
4
+ #
5
+ UserStamp.configure do |config|
6
+
7
+ # ===== Config.current_user =====
8
+ # Set the name of the user object created when checking authentication
9
+ # By default uses the current_user object that devise creates
10
+ # need to make sure that the user_field is defined within the user object
11
+
12
+ # Default
13
+ # config.current_user = :current_user
14
+
15
+
16
+ # ===== Config.user_field ======
17
+ # The field within the user object / user database that is stored for each record in the database
18
+ # To change the behavior to store the user.id field use the following config:
19
+ # config.user_field = :id
20
+ # To store the user's email use the following config:
21
+ # config.user_field = :email
22
+
23
+ # Default
24
+ # config.user_field = :login_name
25
+
26
+ end
@@ -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]
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
@@ -0,0 +1,60 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your email address has been successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid %{authentication_keys} or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account is locked."
15
+ not_found_in_database: "Invalid %{authentication_keys} or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your email address before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock instructions"
26
+ omniauth_callbacks:
27
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
+ success: "Successfully authenticated from %{kind} account."
29
+ passwords:
30
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
32
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
+ updated: "Your password has been changed successfully. You are now signed in."
34
+ updated_not_active: "Your password has been changed successfully."
35
+ registrations:
36
+ destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
37
+ signed_up: "Welcome! You have signed up successfully."
38
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
41
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
42
+ updated: "Your account has been updated successfully."
43
+ sessions:
44
+ signed_in: "Signed in successfully."
45
+ signed_out: "Signed out successfully."
46
+ already_signed_out: "Signed out successfully."
47
+ unlocks:
48
+ send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
49
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
50
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
51
+ errors:
52
+ messages:
53
+ already_confirmed: "was already confirmed, please try signing in"
54
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
55
+ expired: "has expired, please request a new one"
56
+ not_found: "not found"
57
+ not_locked: "was not locked"
58
+ not_saved:
59
+ one: "1 error prohibited this %{resource} from being saved:"
60
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,7 @@
1
+ Dummy::Application.routes.draw do
2
+
3
+ devise_for :users
4
+ resources :products
5
+ resources :materials
6
+
7
+ end
Binary file
@@ -0,0 +1,43 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table(:users) do |t|
4
+ ## Database authenticatable
5
+ t.string :email, null: false, default: ""
6
+ t.string :encrypted_password, null: false, default: ""
7
+ t.string :login_name
8
+
9
+ ## Recoverable
10
+ t.string :reset_password_token
11
+ t.datetime :reset_password_sent_at
12
+
13
+ ## Rememberable
14
+ t.datetime :remember_created_at
15
+
16
+ ## Trackable
17
+ t.integer :sign_in_count, default: 0, null: false
18
+ t.datetime :current_sign_in_at
19
+ t.datetime :last_sign_in_at
20
+ t.string :current_sign_in_ip
21
+ t.string :last_sign_in_ip
22
+
23
+ ## Confirmable
24
+ # t.string :confirmation_token
25
+ # t.datetime :confirmed_at
26
+ # t.datetime :confirmation_sent_at
27
+ # t.string :unconfirmed_email # Only if using reconfirmable
28
+
29
+ ## Lockable
30
+ # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
31
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
32
+ # t.datetime :locked_at
33
+
34
+
35
+ t.timestamps
36
+ end
37
+
38
+ add_index :users, :email, unique: true
39
+ add_index :users, :reset_password_token, unique: true
40
+ # add_index :users, :confirmation_token, unique: true
41
+ # add_index :users, :unlock_token, unique: true
42
+ end
43
+ end
@@ -0,0 +1,13 @@
1
+ class CreateProducts < ActiveRecord::Migration
2
+ def change
3
+ create_table :products do |t|
4
+ t.string :name
5
+ t.boolean :deleted, default: false
6
+ t.string :created_user
7
+ t.string :updated_user
8
+ t.string :destroy_user
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class CreateMaterials < ActiveRecord::Migration
2
+ def change
3
+ create_table :materials do |t|
4
+ t.string :name
5
+ t.boolean :deleted, default: false
6
+ t.integer :created_user
7
+ t.integer :updated_user
8
+ t.integer :destroy_user
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,55 @@
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 to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20150420023321) do
15
+
16
+ create_table "materials", :force => true do |t|
17
+ t.string "name"
18
+ t.boolean "deleted", :default => false
19
+ t.integer "created_user"
20
+ t.integer "updated_user"
21
+ t.integer "destroy_user"
22
+ t.datetime "created_at", :null => false
23
+ t.datetime "updated_at", :null => false
24
+ end
25
+
26
+ create_table "products", :force => true do |t|
27
+ t.string "name"
28
+ t.boolean "deleted", :default => false
29
+ t.string "created_user"
30
+ t.string "updated_user"
31
+ t.string "destroy_user"
32
+ t.datetime "created_at", :null => false
33
+ t.datetime "updated_at", :null => false
34
+ end
35
+
36
+ create_table "users", :force => true do |t|
37
+ t.string "email", :default => "", :null => false
38
+ t.string "encrypted_password", :default => "", :null => false
39
+ t.string "login_name"
40
+ t.string "reset_password_token"
41
+ t.datetime "reset_password_sent_at"
42
+ t.datetime "remember_created_at"
43
+ t.integer "sign_in_count", :default => 0, :null => false
44
+ t.datetime "current_sign_in_at"
45
+ t.datetime "last_sign_in_at"
46
+ t.string "current_sign_in_ip"
47
+ t.string "last_sign_in_ip"
48
+ t.datetime "created_at", :null => false
49
+ t.datetime "updated_at", :null => false
50
+ end
51
+
52
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
53
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
54
+
55
+ end
Binary file
@@ -0,0 +1,168 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.1ms) select sqlite_version(*)
4
+  (159.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5
+  (156.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
7
+ Migrating to DeviseCreateUsers (20150418012302)
8
+  (0.1ms) begin transaction
9
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "login_name" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
10
+  (0.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
11
+  (1.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
12
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150418012302')
13
+  (125.2ms) commit transaction
14
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
15
+ Connecting to database specified by database.yml
16
+ Connecting to database specified by database.yml
17
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
18
+ Migrating to DeviseCreateUsers (20150418012302)
19
+ Migrating to CreateProducts (20150418013334)
20
+  (0.1ms) select sqlite_version(*)
21
+  (0.1ms) begin transaction
22
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
23
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')
24
+  (226.8ms) commit transaction
25
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
26
+ Connecting to database specified by database.yml
27
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
28
+  (0.3ms) select sqlite_version(*)
29
+  (209.2ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
30
+  (152.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "login_name" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
31
+  (145.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
32
+  (156.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
33
+  (145.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
34
+  (124.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35
+  (0.2ms) SELECT version FROM "schema_migrations"
36
+  (100.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150418013334')
37
+  (77.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150418012302')
38
+ Connecting to database specified by database.yml
39
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
40
+  (0.3ms) select sqlite_version(*)
41
+  (282.9ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
42
+  (138.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "login_name" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
43
+  (123.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
44
+  (123.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
45
+  (123.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
46
+  (112.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (0.1ms) SELECT version FROM "schema_migrations"
48
+  (71.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150418013334')
49
+  (77.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150418012302')
50
+ Connecting to database specified by database.yml
51
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
52
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
53
+ Migrating to CreateProducts (20150418013334)
54
+  (0.1ms) select sqlite_version(*)
55
+  (0.1ms) begin transaction
56
+  (0.6ms) DROP TABLE "products"
57
+  (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150418013334'
58
+  (103.7ms) commit transaction
59
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
60
+ Connecting to database specified by database.yml
61
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
62
+ Migrating to DeviseCreateUsers (20150418012302)
63
+ Migrating to CreateProducts (20150418013334)
64
+  (0.1ms) select sqlite_version(*)
65
+  (0.1ms) begin transaction
66
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "deleted" boolean DEFAULT 't', "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
67
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')
68
+  (201.7ms) commit transaction
69
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
70
+ Connecting to database specified by database.yml
71
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
72
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
73
+ Migrating to CreateProducts (20150418013334)
74
+  (0.1ms) select sqlite_version(*)
75
+  (0.1ms) begin transaction
76
+  (0.5ms) DROP TABLE "products"
77
+  (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150418013334'
78
+  (599.4ms) commit transaction
79
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
80
+ Connecting to database specified by database.yml
81
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
82
+ Migrating to DeviseCreateUsers (20150418012302)
83
+ Migrating to CreateProducts (20150418013334)
84
+  (0.1ms) select sqlite_version(*)
85
+  (0.1ms) begin transaction
86
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "deleted" boolean DEFAULT 'f', "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
87
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')
88
+  (183.8ms) commit transaction
89
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
90
+ Connecting to database specified by database.yml
91
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
92
+ Migrating to DeviseCreateUsers (20150418012302)
93
+ Migrating to CreateProducts (20150418013334)
94
+  (0.2ms) select sqlite_version(*)
95
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
96
+ Connecting to database specified by database.yml
97
+  (1.4ms) select sqlite_version(*)
98
+  (188.8ms) DROP TABLE "products"
99
+  (116.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "deleted" boolean DEFAULT 'f', "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
100
+  (111.2ms) DROP TABLE "users"
101
+  (121.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "login_name" varchar(255), "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
102
+  (121.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
103
+  (120.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
104
+  (0.1ms) SELECT version FROM "schema_migrations"
105
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
106
+ Connecting to database specified by database.yml
107
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
108
+ Migrating to DeviseCreateUsers (20150418012302)
109
+ Migrating to CreateProducts (20150418013334)
110
+  (0.2ms) select sqlite_version(*)
111
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
112
+ Connecting to database specified by database.yml
113
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
114
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
115
+ Migrating to CreateProducts (20150418013334)
116
+  (0.1ms) select sqlite_version(*)
117
+  (0.1ms) begin transaction
118
+  (0.6ms) DROP TABLE "products"
119
+  (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150418013334'
120
+  (240.4ms) commit transaction
121
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
122
+ Connecting to database specified by database.yml
123
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
124
+ Migrating to DeviseCreateUsers (20150418012302)
125
+ Migrating to CreateProducts (20150418013334)
126
+  (0.1ms) select sqlite_version(*)
127
+  (0.1ms) begin transaction
128
+  (0.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "deleted" boolean DEFAULT 'f', "created_user" varchar(255), "updated_user" varchar(255), "destroy_user" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
129
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')
130
+  (204.0ms) commit transaction
131
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
132
+ Connecting to database specified by database.yml
133
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
134
+ Migrating to DeviseCreateUsers (20150418012302)
135
+ Migrating to CreateProducts (20150418013334)
136
+  (0.1ms) select sqlite_version(*)
137
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
138
+ Connecting to database specified by database.yml
139
+ Connecting to database specified by database.yml
140
+ Connecting to database specified by database.yml
141
+ Connecting to database specified by database.yml
142
+ Connecting to database specified by database.yml
143
+ Connecting to database specified by database.yml
144
+ Connecting to database specified by database.yml
145
+ Connecting to database specified by database.yml
146
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
147
+ Migrating to DeviseCreateUsers (20150418012302)
148
+ Migrating to CreateProducts (20150418013334)
149
+ Migrating to CreateMaterials (20150420023321)
150
+  (0.1ms) select sqlite_version(*)
151
+  (0.1ms) begin transaction
152
+  (0.8ms) CREATE TABLE "materials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "deleted" boolean DEFAULT 'f', "created_user" integer, "updated_user" integer, "destroy_user" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
153
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150420023321')
154
+  (216.1ms) commit transaction
155
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
156
+ Connecting to database specified by database.yml
157
+ Connecting to database specified by database.yml
158
+ Connecting to database specified by database.yml
159
+ Connecting to database specified by database.yml
160
+ Connecting to database specified by database.yml
161
+ Connecting to database specified by database.yml
162
+ Connecting to database specified by database.yml
163
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
164
+ Migrating to DeviseCreateUsers (20150418012302)
165
+ Migrating to CreateProducts (20150418013334)
166
+ Migrating to CreateMaterials (20150420023321)
167
+  (0.1ms) select sqlite_version(*)
168
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"