Advertisement
Guest User

grapple-console

a guest
May 11th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.33 KB | None | 0 0
  1. bojan@bojan-MS-7758:~/Documents/grapple$ bundle exec rake db:migrate
  2. == 20150928072458 DeviseCreateUsers: migrating ================================
  3. -- create_table(:users)
  4. -> 0.0906s
  5. -- add_index(:users, :email, {:unique=>true})
  6. -> 0.0418s
  7. -- add_index(:users, :reset_password_token, {:unique=>true})
  8. -> 0.0502s
  9. == 20150928072458 DeviseCreateUsers: migrated (0.1829s) =======================
  10.  
  11. == 20150928073228 CreateAuthenticationTokens: migrating =======================
  12. -- create_table(:authentication_tokens)
  13. -> 0.1289s
  14. == 20150928073228 CreateAuthenticationTokens: migrated (0.1290s) ==============
  15.  
  16. == 20151019235920 CreateDocuments: migrating ==================================
  17. -- create_table(:documents)
  18. -> 0.1445s
  19. -- create_table(:section_texts)
  20. -> 0.0900s
  21. -- create_table(:section_containers)
  22. -> 0.1425s
  23. == 20151019235920 CreateDocuments: migrated (0.3774s) =========================
  24.  
  25. == 20151026235827 AddPositionToSectionContainer: migrating ====================
  26. -- add_column(:section_containers, :position, :integer)
  27. -> 0.0012s
  28. == 20151026235827 AddPositionToSectionContainer: migrated (0.0012s) ===========
  29.  
  30. == 20160122044707 AddNameToUsers: migrating ===================================
  31. -- add_column(:users, :full_name, :string)
  32. -> 0.0012s
  33. == 20160122044707 AddNameToUsers: migrated (0.0014s) ==========================
  34.  
  35. == 20160125130635 AddCreatedByToDocuments: migrating ==========================
  36. -- add_reference(:documents, :created_by, {:references=>:users, :index=>true})
  37. -> 0.0445s
  38. -- add_foreign_key(:documents, :users, {:column=>:created_by_id})
  39. -> 0.0021s
  40. == 20160125130635 AddCreatedByToDocuments: migrated (0.0468s) =================
  41.  
  42. == 20160125130651 AddCreatedByToSectionText: migrating ========================
  43. -- add_reference(:section_texts, :created_by, {:references=>:users, :index=>true})
  44. -> 0.0440s
  45. -- add_foreign_key(:section_texts, :users, {:column=>:created_by_id})
  46. -> 0.0017s
  47. == 20160125130651 AddCreatedByToSectionText: migrated (0.0458s) ===============
  48.  
  49. == 20160131061626 CreateProjects: migrating ===================================
  50. -- create_table(:projects)
  51. -> 0.0786s
  52. == 20160131061626 CreateProjects: migrated (0.0787s) ==========================
  53.  
  54. == 20160131063251 AddCreatedByToProjects: migrating ===========================
  55. -- add_reference(:projects, :created_by, {:references=>:users, :index=>true, :null=>false})
  56. -> 0.0369s
  57. -- add_foreign_key(:projects, :users, {:column=>:created_by_id})
  58. -> 0.0021s
  59. == 20160131063251 AddCreatedByToProjects: migrated (0.0393s) ==================
  60.  
  61. == 20160131104238 AddProjectToDocuments: migrating ============================
  62. -- add_reference(:documents, :project, {:index=>true, :foreign_key=>true, :null=>false})
  63. -> 0.0410s
  64. == 20160131104238 AddProjectToDocuments: migrated (0.0411s) ===================
  65.  
  66. == 20160202025453 AddProjectToSectionText: migrating ==========================
  67. -- add_reference(:section_texts, :project, {:index=>true, :foreign_key=>true, :null=>false})
  68. -> 0.0411s
  69. == 20160202025453 AddProjectToSectionText: migrated (0.0413s) =================
  70.  
  71. == 20160210231504 AddTemplateToProjects: migrating ============================
  72. -- add_column(:projects, :template_status, :int)
  73. -> 0.0009s
  74. == 20160210231504 AddTemplateToProjects: migrated (0.0009s) ===================
  75.  
  76. == 20160214093752 AddArchivedToDocuments: migrating ===========================
  77. -- add_column(:documents, :archived, :bool, {:default=>false})
  78. -> 0.2170s
  79. == 20160214093752 AddArchivedToDocuments: migrated (0.2171s) ==================
  80.  
  81. == 20160217005046 AddArchivedToProjects: migrating ============================
  82. -- add_column(:projects, :archived, :bool, {:default=>false})
  83. -> 0.1421s
  84. == 20160217005046 AddArchivedToProjects: migrated (0.1422s) ===================
  85.  
  86. == 20160217043101 AddImagesToDocuments: migrating =============================
  87. -- add_column(:documents, :images, :json)
  88. -> 0.0009s
  89. == 20160217043101 AddImagesToDocuments: migrated (0.0010s) ====================
  90.  
  91. == 20160217132429 CreateImages: migrating =====================================
  92. -- remove_column(:documents, :images)
  93. -> 0.0009s
  94. -- create_table(:images)
  95. -> 0.0829s
  96. == 20160217132429 CreateImages: migrated (0.0840s) ============================
  97.  
  98. == 20160221012840 RemoveUserIdInDocument: migrating ===========================
  99. -- remove_column(:documents, :user_id)
  100. -> 0.0014s
  101. == 20160221012840 RemoveUserIdInDocument: migrated (0.0015s) ==================
  102.  
  103. == 20160222005925 AddInvitationColumnsToUser: migrating =======================
  104. -- add_column(:users, :invitation_token, :string)
  105. -> 0.0013s
  106. -- add_column(:users, :invitation_created_at, :datetime)
  107. -> 0.0009s
  108. -- add_column(:users, :invitation_sent_at, :datetime)
  109. -> 0.0007s
  110. -- add_column(:users, :invitation_accepted_at, :datetime)
  111. -> 0.0007s
  112. -- add_column(:users, :invitation_limit, :integer)
  113. -> 0.0006s
  114. -- add_column(:users, :invited_by_id, :integer)
  115. -> 0.0005s
  116. -- add_column(:users, :invited_by_type, :string)
  117. -> 0.0004s
  118. -- add_index(:users, :invitation_token, {:unique=>true})
  119. -> 0.0444s
  120. -- change_column(:users, :encrypted_password, :string, {:null=>true})
  121. -> 0.0016s
  122. == 20160222005925 AddInvitationColumnsToUser: migrated (0.0520s) ==============
  123.  
  124. == 20160222010325 CreateDocumentCollaborators: migrating ======================
  125. -- create_table(:document_collaborators, {:id=>false})
  126. -> 0.0019s
  127. -- add_index(:document_collaborators, [:document_id, :user_id])
  128. -> 0.0408s
  129. -- add_index(:document_collaborators, :user_id)
  130. -> 0.0334s
  131. == 20160222010325 CreateDocumentCollaborators: migrated (0.0764s) =============
  132.  
  133. == 20160224072654 AddConfirmableToDevise: migrating ===========================
  134. -- add_column(:users, :confirmation_token, :string)
  135. -> 0.0012s
  136. -- add_column(:users, :confirmed_at, :datetime)
  137. -> 0.0008s
  138. -- add_column(:users, :confirmation_sent_at, :datetime)
  139. -> 0.0006s
  140. -- add_index(:users, :confirmation_token, {:unique=>true})
  141. -> 0.0542s
  142. -- execute("UPDATE users SET confirmed_at = NOW()")
  143. -> 0.0010s
  144. == 20160224072654 AddConfirmableToDevise: migrated (0.0584s) ==================
  145.  
  146. == 20160306030135 AddCustomerIdToUser: migrating ==============================
  147. -- add_column(:users, :customer_id, :string)
  148. -> 0.0011s
  149. == 20160306030135 AddCustomerIdToUser: migrated (0.0012s) =====================
  150.  
  151. == 20160426171155 CreatePlan: migrating =======================================
  152. -- create_table(:plans)
  153. -> 0.0780s
  154. == 20160426171155 CreatePlan: migrated (0.0781s) ==============================
  155.  
  156. == 20160426172013 AddPlanIdToUser: migrating ==================================
  157. -- add_column(:users, :plan_id, :integer)
  158. -> 0.0012s
  159. == 20160426172013 AddPlanIdToUser: migrated (0.0014s) =========================
  160.  
  161. == 20160428131411 AddFieldsToPlan: migrating ==================================
  162. -- add_column(:plans, :currency, :string)
  163. -> 0.0011s
  164. -- add_column(:plans, :interval, :string)
  165. -> 0.0007s
  166. == 20160428131411 AddFieldsToPlan: migrated (0.0020s) =========================
  167.  
  168. == 20160428131444 RakeTaskForSeeding: migrating ===============================
  169. {
  170. "id": "Free",
  171. "object": "plan",
  172. "amount": 0,
  173. "created": 1461848887,
  174. "currency": "usd",
  175. "interval": "month",
  176. "interval_count": 1,
  177. "livemode": false,
  178. "metadata": {},
  179. "name": "Free",
  180. "statement_descriptor": null,
  181. "trial_period_days": null,
  182. "statement_description": null
  183. }
  184. Plan Free loaded successfully.
  185. {
  186. "id": "Starter",
  187. "object": "plan",
  188. "amount": 5,
  189. "created": 1461848888,
  190. "currency": "usd",
  191. "interval": "month",
  192. "interval_count": 1,
  193. "livemode": false,
  194. "metadata": {},
  195. "name": "Starter",
  196. "statement_descriptor": null,
  197. "trial_period_days": null,
  198. "statement_description": null
  199. }
  200. Plan Starter loaded successfully.
  201. {
  202. "id": "Professional",
  203. "object": "plan",
  204. "amount": 10,
  205. "created": 1461848890,
  206. "currency": "usd",
  207. "interval": "month",
  208. "interval_count": 1,
  209. "livemode": false,
  210. "metadata": {},
  211. "name": "Professional",
  212. "statement_descriptor": null,
  213. "trial_period_days": null,
  214. "statement_description": null
  215. }
  216. Plan Professional loaded successfully.
  217. {
  218. "id": "Team",
  219. "object": "plan",
  220. "amount": 20,
  221. "created": 1461848994,
  222. "currency": "usd",
  223. "interval": "month",
  224. "interval_count": 1,
  225. "livemode": false,
  226. "metadata": {},
  227. "name": "Team1",
  228. "statement_descriptor": null,
  229. "trial_period_days": null,
  230. "statement_description": null
  231. }
  232. Plan Team1 loaded successfully.
  233. Plans loaded successfully.
  234. == 20160428131444 RakeTaskForSeeding: migrated (5.7961s) ======================
  235.  
  236. == 20160506164909 AddApproverToDocuments: migrating ===========================
  237. -- add_reference(:documents, :approver, {:references=>:users, :index=>true})
  238. -> 0.0555s
  239. -- add_foreign_key(:documents, :users, {:column=>:approver_id})
  240. -> 0.0020s
  241. == 20160506164909 AddApproverToDocuments: migrated (0.0749s) ==================
  242.  
  243. bojan@bojan-MS-7758:~/Documents/grapple$ rails c
  244. Loading development environment (Rails 4.2.5.1)
  245. 2.2.5 :001 > User.create!({:email => "test@test.com", :password => "testgrapple", :password_confirmation => "testgrapple", :full_name => "test test"})
  246. (0.2ms) BEGIN
  247. User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@test.com' LIMIT 1
  248. User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["confirmation_token", "9e0d1101945de93e9988786bc12a7190675321d5fa6226fd28c90c8ebf863f33"]]
  249. 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"]]
  250. Rendered /home/bojan/.rvm/gems/ruby-2.2.5/gems/devise-3.5.5/app/views/devise/mailer/confirmation_instructions.html.erb (6.3ms)
  251.  
  252. Devise::Mailer#confirmation_instructions: processed outbound mail in 165.5ms
  253.  
  254. Sent mail to test@test.com (6.6ms)
  255. Date: Wed, 11 May 2016 15:47:07 +0200
  256. From: noreply@grapple.pm
  257. Reply-To: noreply@grapple.pm
  258. To: test@test.com
  259. Message-ID: <573337db672c2_13229139807681b@bojan-MS-7758.mail>
  260. Subject: Confirmation instructions
  261. Mime-Version: 1.0
  262. Content-Type: text/html;
  263. charset=UTF-8
  264. Content-Transfer-Encoding: 7bit
  265.  
  266. <p>Welcome test@test.com!</p>
  267.  
  268. <p>You can confirm your account email through the link below:</p>
  269.  
  270. <p><a href="http://localhost:3000/users/confirmation?confirmation_token=xa5i1D9Sygxxy3Nw9qP4">Confirm my account</a></p>
  271.  
  272. Plan Load (0.6ms) SELECT "plans".* FROM "plans" WHERE "plans"."amount" = $1 LIMIT 1 [["amount", 0.0]]
  273. 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]]
  274. (10.5ms) COMMIT
  275. => #<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>
  276. 2.2.5 :002 > exit
  277. bojan@bojan-MS-7758:~/Documents/grapple$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement