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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +65 -0
- data/Rakefile +40 -0
- data/config/routes.rb +28 -0
- data/lib/generators/user_stamp/USAGE +9 -0
- data/lib/generators/user_stamp/templates/user_stamp.template +26 -0
- data/lib/generators/user_stamp/user_stamp_generator.rb +34 -0
- data/lib/tasks/user_stamp_tasks.rake +4 -0
- data/lib/user_stamp.rb +36 -0
- data/lib/user_stamp/app_controller.rb +40 -0
- data/lib/user_stamp/config.rb +60 -0
- data/lib/user_stamp/engine.rb +37 -0
- data/lib/user_stamp/user.rb +41 -0
- data/lib/user_stamp/user_stamp.rb +62 -0
- data/lib/user_stamp/version.rb +29 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/materials.js +2 -0
- data/test/dummy/app/assets/javascripts/products.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/materials.css +4 -0
- data/test/dummy/app/assets/stylesheets/products.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +33 -0
- data/test/dummy/app/controllers/materials_controller.rb +83 -0
- data/test/dummy/app/controllers/products_controller.rb +83 -0
- data/test/dummy/app/helpers/application_helper.rb +28 -0
- data/test/dummy/app/helpers/materials_helper.rb +28 -0
- data/test/dummy/app/helpers/products_helper.rb +28 -0
- data/test/dummy/app/models/material.rb +43 -0
- data/test/dummy/app/models/product.rb +40 -0
- data/test/dummy/app/models/user.rb +36 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/materials/_form.html.erb +33 -0
- data/test/dummy/app/views/materials/edit.html.erb +6 -0
- data/test/dummy/app/views/materials/index.html.erb +29 -0
- data/test/dummy/app/views/materials/new.html.erb +6 -0
- data/test/dummy/app/views/materials/show.html.erb +28 -0
- data/test/dummy/app/views/products/_form.html.erb +33 -0
- data/test/dummy/app/views/products/edit.html.erb +6 -0
- data/test/dummy/app/views/products/index.html.erb +29 -0
- data/test/dummy/app/views/products/new.html.erb +5 -0
- data/test/dummy/app/views/products/show.html.erb +25 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +259 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/user_stamp.rb +26 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +7 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150418012302_devise_create_users.rb +43 -0
- data/test/dummy/db/migrate/20150418013334_create_products.rb +13 -0
- data/test/dummy/db/migrate/20150420023321_create_materials.rb +13 -0
- data/test/dummy/db/schema.rb +55 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +168 -0
- data/test/dummy/log/test.log +5481 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/functional/materials_controller_test.rb +98 -0
- data/test/dummy/test/functional/products_controller_test.rb +99 -0
- data/test/dummy/test/unit/helpers/materials_helper_test.rb +30 -0
- data/test/dummy/test/unit/helpers/products_helper_test.rb +30 -0
- data/test/dummy/test/unit/material_test.rb +33 -0
- data/test/dummy/test/unit/product_test.rb +33 -0
- data/test/dummy/test/unit/user_test.rb +33 -0
- data/test/fixtures/materials.yml +51 -0
- data/test/fixtures/products.yml +51 -0
- data/test/fixtures/users.yml +40 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +45 -0
- data/test/user_stamp_test.rb +33 -0
- 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,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:"
|
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
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
+
[1m[35m (159.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
5
|
+
[1m[36m (156.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
7
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
8
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
11
|
+
[1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
12
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20150418012302')[0m
|
13
|
+
[1m[35m (125.2ms)[0m commit transaction
|
14
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
15
|
+
Connecting to database specified by database.yml
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
18
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
19
|
+
Migrating to CreateProducts (20150418013334)
|
20
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
21
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
22
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')[0m
|
24
|
+
[1m[35m (226.8ms)[0m commit transaction
|
25
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
26
|
+
Connecting to database specified by database.yml
|
27
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
28
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
29
|
+
[1m[36m (209.2ms)[0m [1mCREATE 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) [0m
|
30
|
+
[1m[35m (152.0ms)[0m 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
|
+
[1m[36m (145.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
32
|
+
[1m[35m (156.3ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
33
|
+
[1m[36m (145.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
34
|
+
[1m[35m (124.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
35
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
36
|
+
[1m[35m (100.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150418013334')
|
37
|
+
[1m[36m (77.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150418012302')[0m
|
38
|
+
Connecting to database specified by database.yml
|
39
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
40
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
41
|
+
[1m[36m (282.9ms)[0m [1mCREATE 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) [0m
|
42
|
+
[1m[35m (138.7ms)[0m 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
|
+
[1m[36m (123.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
44
|
+
[1m[35m (123.1ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
45
|
+
[1m[36m (123.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
46
|
+
[1m[35m (112.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
47
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
48
|
+
[1m[35m (71.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150418013334')
|
49
|
+
[1m[36m (77.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150418012302')[0m
|
50
|
+
Connecting to database specified by database.yml
|
51
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
52
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
53
|
+
Migrating to CreateProducts (20150418013334)
|
54
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
55
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "products"[0m
|
57
|
+
[1m[35m (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150418013334'
|
58
|
+
[1m[36m (103.7ms)[0m [1mcommit transaction[0m
|
59
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
60
|
+
Connecting to database specified by database.yml
|
61
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
62
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
63
|
+
Migrating to CreateProducts (20150418013334)
|
64
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')[0m
|
68
|
+
[1m[35m (201.7ms)[0m commit transaction
|
69
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
70
|
+
Connecting to database specified by database.yml
|
71
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
72
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
73
|
+
Migrating to CreateProducts (20150418013334)
|
74
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
75
|
+
[1m[35m (0.1ms)[0m begin transaction
|
76
|
+
[1m[36m (0.5ms)[0m [1mDROP TABLE "products"[0m
|
77
|
+
[1m[35m (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150418013334'
|
78
|
+
[1m[36m (599.4ms)[0m [1mcommit transaction[0m
|
79
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
80
|
+
Connecting to database specified by database.yml
|
81
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
82
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
83
|
+
Migrating to CreateProducts (20150418013334)
|
84
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
85
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
86
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')[0m
|
88
|
+
[1m[35m (183.8ms)[0m commit transaction
|
89
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
90
|
+
Connecting to database specified by database.yml
|
91
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
92
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
93
|
+
Migrating to CreateProducts (20150418013334)
|
94
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
95
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
96
|
+
Connecting to database specified by database.yml
|
97
|
+
[1m[36m (1.4ms)[0m [1mselect sqlite_version(*)[0m
|
98
|
+
[1m[35m (188.8ms)[0m DROP TABLE "products"
|
99
|
+
[1m[36m (116.8ms)[0m [1mCREATE 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) [0m
|
100
|
+
[1m[35m (111.2ms)[0m DROP TABLE "users"
|
101
|
+
[1m[36m (121.1ms)[0m [1mCREATE 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) [0m
|
102
|
+
[1m[35m (121.7ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
103
|
+
[1m[36m (120.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
104
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
105
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
106
|
+
Connecting to database specified by database.yml
|
107
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
108
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
109
|
+
Migrating to CreateProducts (20150418013334)
|
110
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
111
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
112
|
+
Connecting to database specified by database.yml
|
113
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
114
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
115
|
+
Migrating to CreateProducts (20150418013334)
|
116
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
117
|
+
[1m[35m (0.1ms)[0m begin transaction
|
118
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "products"[0m
|
119
|
+
[1m[35m (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150418013334'
|
120
|
+
[1m[36m (240.4ms)[0m [1mcommit transaction[0m
|
121
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
122
|
+
Connecting to database specified by database.yml
|
123
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
124
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
125
|
+
Migrating to CreateProducts (20150418013334)
|
126
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
128
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20150418013334')[0m
|
130
|
+
[1m[35m (204.0ms)[0m commit transaction
|
131
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
132
|
+
Connecting to database specified by database.yml
|
133
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
134
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
135
|
+
Migrating to CreateProducts (20150418013334)
|
136
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
137
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
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
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
147
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
148
|
+
Migrating to CreateProducts (20150418013334)
|
149
|
+
Migrating to CreateMaterials (20150420023321)
|
150
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
152
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20150420023321')[0m
|
154
|
+
[1m[35m (216.1ms)[0m commit transaction
|
155
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
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
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
164
|
+
Migrating to DeviseCreateUsers (20150418012302)
|
165
|
+
Migrating to CreateProducts (20150418013334)
|
166
|
+
Migrating to CreateMaterials (20150420023321)
|
167
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
168
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|