Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bojan@bojan-MS-7758:~/Documents/grapple$ bundle exec rake db:migrate
- == 20150928072458 DeviseCreateUsers: migrating ================================
- -- create_table(:users)
- -> 0.0906s
- -- add_index(:users, :email, {:unique=>true})
- -> 0.0418s
- -- add_index(:users, :reset_password_token, {:unique=>true})
- -> 0.0502s
- == 20150928072458 DeviseCreateUsers: migrated (0.1829s) =======================
- == 20150928073228 CreateAuthenticationTokens: migrating =======================
- -- create_table(:authentication_tokens)
- -> 0.1289s
- == 20150928073228 CreateAuthenticationTokens: migrated (0.1290s) ==============
- == 20151019235920 CreateDocuments: migrating ==================================
- -- create_table(:documents)
- -> 0.1445s
- -- create_table(:section_texts)
- -> 0.0900s
- -- create_table(:section_containers)
- -> 0.1425s
- == 20151019235920 CreateDocuments: migrated (0.3774s) =========================
- == 20151026235827 AddPositionToSectionContainer: migrating ====================
- -- add_column(:section_containers, :position, :integer)
- -> 0.0012s
- == 20151026235827 AddPositionToSectionContainer: migrated (0.0012s) ===========
- == 20160122044707 AddNameToUsers: migrating ===================================
- -- add_column(:users, :full_name, :string)
- -> 0.0012s
- == 20160122044707 AddNameToUsers: migrated (0.0014s) ==========================
- == 20160125130635 AddCreatedByToDocuments: migrating ==========================
- -- add_reference(:documents, :created_by, {:references=>:users, :index=>true})
- -> 0.0445s
- -- add_foreign_key(:documents, :users, {:column=>:created_by_id})
- -> 0.0021s
- == 20160125130635 AddCreatedByToDocuments: migrated (0.0468s) =================
- == 20160125130651 AddCreatedByToSectionText: migrating ========================
- -- add_reference(:section_texts, :created_by, {:references=>:users, :index=>true})
- -> 0.0440s
- -- add_foreign_key(:section_texts, :users, {:column=>:created_by_id})
- -> 0.0017s
- == 20160125130651 AddCreatedByToSectionText: migrated (0.0458s) ===============
- == 20160131061626 CreateProjects: migrating ===================================
- -- create_table(:projects)
- -> 0.0786s
- == 20160131061626 CreateProjects: migrated (0.0787s) ==========================
- == 20160131063251 AddCreatedByToProjects: migrating ===========================
- -- add_reference(:projects, :created_by, {:references=>:users, :index=>true, :null=>false})
- -> 0.0369s
- -- add_foreign_key(:projects, :users, {:column=>:created_by_id})
- -> 0.0021s
- == 20160131063251 AddCreatedByToProjects: migrated (0.0393s) ==================
- == 20160131104238 AddProjectToDocuments: migrating ============================
- -- add_reference(:documents, :project, {:index=>true, :foreign_key=>true, :null=>false})
- -> 0.0410s
- == 20160131104238 AddProjectToDocuments: migrated (0.0411s) ===================
- == 20160202025453 AddProjectToSectionText: migrating ==========================
- -- add_reference(:section_texts, :project, {:index=>true, :foreign_key=>true, :null=>false})
- -> 0.0411s
- == 20160202025453 AddProjectToSectionText: migrated (0.0413s) =================
- == 20160210231504 AddTemplateToProjects: migrating ============================
- -- add_column(:projects, :template_status, :int)
- -> 0.0009s
- == 20160210231504 AddTemplateToProjects: migrated (0.0009s) ===================
- == 20160214093752 AddArchivedToDocuments: migrating ===========================
- -- add_column(:documents, :archived, :bool, {:default=>false})
- -> 0.2170s
- == 20160214093752 AddArchivedToDocuments: migrated (0.2171s) ==================
- == 20160217005046 AddArchivedToProjects: migrating ============================
- -- add_column(:projects, :archived, :bool, {:default=>false})
- -> 0.1421s
- == 20160217005046 AddArchivedToProjects: migrated (0.1422s) ===================
- == 20160217043101 AddImagesToDocuments: migrating =============================
- -- add_column(:documents, :images, :json)
- -> 0.0009s
- == 20160217043101 AddImagesToDocuments: migrated (0.0010s) ====================
- == 20160217132429 CreateImages: migrating =====================================
- -- remove_column(:documents, :images)
- -> 0.0009s
- -- create_table(:images)
- -> 0.0829s
- == 20160217132429 CreateImages: migrated (0.0840s) ============================
- == 20160221012840 RemoveUserIdInDocument: migrating ===========================
- -- remove_column(:documents, :user_id)
- -> 0.0014s
- == 20160221012840 RemoveUserIdInDocument: migrated (0.0015s) ==================
- == 20160222005925 AddInvitationColumnsToUser: migrating =======================
- -- add_column(:users, :invitation_token, :string)
- -> 0.0013s
- -- add_column(:users, :invitation_created_at, :datetime)
- -> 0.0009s
- -- add_column(:users, :invitation_sent_at, :datetime)
- -> 0.0007s
- -- add_column(:users, :invitation_accepted_at, :datetime)
- -> 0.0007s
- -- add_column(:users, :invitation_limit, :integer)
- -> 0.0006s
- -- add_column(:users, :invited_by_id, :integer)
- -> 0.0005s
- -- add_column(:users, :invited_by_type, :string)
- -> 0.0004s
- -- add_index(:users, :invitation_token, {:unique=>true})
- -> 0.0444s
- -- change_column(:users, :encrypted_password, :string, {:null=>true})
- -> 0.0016s
- == 20160222005925 AddInvitationColumnsToUser: migrated (0.0520s) ==============
- == 20160222010325 CreateDocumentCollaborators: migrating ======================
- -- create_table(:document_collaborators, {:id=>false})
- -> 0.0019s
- -- add_index(:document_collaborators, [:document_id, :user_id])
- -> 0.0408s
- -- add_index(:document_collaborators, :user_id)
- -> 0.0334s
- == 20160222010325 CreateDocumentCollaborators: migrated (0.0764s) =============
- == 20160224072654 AddConfirmableToDevise: migrating ===========================
- -- add_column(:users, :confirmation_token, :string)
- -> 0.0012s
- -- add_column(:users, :confirmed_at, :datetime)
- -> 0.0008s
- -- add_column(:users, :confirmation_sent_at, :datetime)
- -> 0.0006s
- -- add_index(:users, :confirmation_token, {:unique=>true})
- -> 0.0542s
- -- execute("UPDATE users SET confirmed_at = NOW()")
- -> 0.0010s
- == 20160224072654 AddConfirmableToDevise: migrated (0.0584s) ==================
- == 20160306030135 AddCustomerIdToUser: migrating ==============================
- -- add_column(:users, :customer_id, :string)
- -> 0.0011s
- == 20160306030135 AddCustomerIdToUser: migrated (0.0012s) =====================
- == 20160426171155 CreatePlan: migrating =======================================
- -- create_table(:plans)
- -> 0.0780s
- == 20160426171155 CreatePlan: migrated (0.0781s) ==============================
- == 20160426172013 AddPlanIdToUser: migrating ==================================
- -- add_column(:users, :plan_id, :integer)
- -> 0.0012s
- == 20160426172013 AddPlanIdToUser: migrated (0.0014s) =========================
- == 20160428131411 AddFieldsToPlan: migrating ==================================
- -- add_column(:plans, :currency, :string)
- -> 0.0011s
- -- add_column(:plans, :interval, :string)
- -> 0.0007s
- == 20160428131411 AddFieldsToPlan: migrated (0.0020s) =========================
- == 20160428131444 RakeTaskForSeeding: migrating ===============================
- {
- "id": "Free",
- "object": "plan",
- "amount": 0,
- "created": 1461848887,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {},
- "name": "Free",
- "statement_descriptor": null,
- "trial_period_days": null,
- "statement_description": null
- }
- Plan Free loaded successfully.
- {
- "id": "Starter",
- "object": "plan",
- "amount": 5,
- "created": 1461848888,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {},
- "name": "Starter",
- "statement_descriptor": null,
- "trial_period_days": null,
- "statement_description": null
- }
- Plan Starter loaded successfully.
- {
- "id": "Professional",
- "object": "plan",
- "amount": 10,
- "created": 1461848890,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {},
- "name": "Professional",
- "statement_descriptor": null,
- "trial_period_days": null,
- "statement_description": null
- }
- Plan Professional loaded successfully.
- {
- "id": "Team",
- "object": "plan",
- "amount": 20,
- "created": 1461848994,
- "currency": "usd",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {},
- "name": "Team1",
- "statement_descriptor": null,
- "trial_period_days": null,
- "statement_description": null
- }
- Plan Team1 loaded successfully.
- Plans loaded successfully.
- == 20160428131444 RakeTaskForSeeding: migrated (5.7961s) ======================
- == 20160506164909 AddApproverToDocuments: migrating ===========================
- -- add_reference(:documents, :approver, {:references=>:users, :index=>true})
- -> 0.0555s
- -- add_foreign_key(:documents, :users, {:column=>:approver_id})
- -> 0.0020s
- == 20160506164909 AddApproverToDocuments: migrated (0.0749s) ==================
- bojan@bojan-MS-7758:~/Documents/grapple$ rails c
- Loading development environment (Rails 4.2.5.1)
- 2.2.5 :001 > User.create!({:email => "test@test.com", :password => "testgrapple", :password_confirmation => "testgrapple", :full_name => "test test"})
- (0.2ms) BEGIN
- User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["confirmation_token", "9e0d1101945de93e9988786bc12a7190675321d5fa6226fd28c90c8ebf863f33"]]
- SQL (18.4ms) INSERT INTO "users" ("email", "encrypted_password", "full_name", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "test@test.com"], ["encrypted_password", "$2a$10$VKdV3aiJlyPtuWE9j5sstuBdH0QJMyaO2J9wBdRtdSJaowHCpQ5GG"], ["full_name", "test test"], ["created_at", "2016-05-11 13:47:07.057304"], ["updated_at", "2016-05-11 13:47:07.057304"], ["confirmation_token", "xa5i1D9Sygxxy3Nw9qP4"], ["confirmation_sent_at", "2016-05-11 13:47:07.229315"]]
- Rendered /home/bojan/.rvm/gems/ruby-2.2.5/gems/devise-3.5.5/app/views/devise/mailer/confirmation_instructions.html.erb (6.3ms)
- Devise::Mailer#confirmation_instructions: processed outbound mail in 165.5ms
- Sent mail to test@test.com (6.6ms)
- Date: Wed, 11 May 2016 15:47:07 +0200
- From: noreply@grapple.pm
- Reply-To: noreply@grapple.pm
- To: test@test.com
- Message-ID: <573337db672c2_13229139807681b@bojan-MS-7758.mail>
- Subject: Confirmation instructions
- Mime-Version: 1.0
- Content-Type: text/html;
- charset=UTF-8
- Content-Transfer-Encoding: 7bit
- <p>Welcome test@test.com!</p>
- <p>You can confirm your account email through the link below:</p>
- <p><a href="http://localhost:3000/users/confirmation?confirmation_token=xa5i1D9Sygxxy3Nw9qP4">Confirm my account</a></p>
- Plan Load (0.6ms) SELECT "plans".* FROM "plans" WHERE "plans"."amount" = $1 LIMIT 1 [["amount", 0.0]]
- SQL (0.8ms) UPDATE "users" SET "email" = $1, "encrypted_password" = $2, "full_name" = $3, "created_at" = $4, "updated_at" = $5, "confirmation_token" = $6, "confirmation_sent_at" = $7, "id" = $8, "plan_id" = $9 WHERE "users"."id" = $10 [["email", "test@test.com"], ["encrypted_password", "$2a$10$VKdV3aiJlyPtuWE9j5sstuBdH0QJMyaO2J9wBdRtdSJaowHCpQ5GG"], ["full_name", "test test"], ["created_at", "2016-05-11 13:47:07.057304"], ["updated_at", "2016-05-11 13:47:07.057304"], ["confirmation_token", "xa5i1D9Sygxxy3Nw9qP4"], ["confirmation_sent_at", "2016-05-11 13:47:07.229315"], ["id", 1], ["plan_id", 1], ["id", 1]]
- (10.5ms) COMMIT
- => #<User id: 1, email: "test@test.com", encrypted_password: "$2a$10$VKdV3aiJlyPtuWE9j5sstuBdH0QJMyaO2J9wBdRtdSJ...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: "2016-05-11 13:47:07", updated_at: "2016-05-11 13:47:07", full_name: "test test", invitation_token: nil, invitation_created_at: nil, invitation_sent_at: nil, invitation_accepted_at: nil, invitation_limit: nil, invited_by_id: nil, invited_by_type: nil, confirmation_token: "xa5i1D9Sygxxy3Nw9qP4", confirmed_at: nil, confirmation_sent_at: "2016-05-11 13:47:07", customer_id: nil, plan_id: 1>
- 2.2.5 :002 > exit
- bojan@bojan-MS-7758:~/Documents/grapple$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement