sunrise-questions 0.1.0

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 (264) hide show
  1. data/Gemfile +34 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +21 -0
  4. data/Rakefile +27 -0
  5. data/app/controllers/manage/questions_controller.rb +36 -0
  6. data/app/views/manage/questions/_form.html.erb +17 -0
  7. data/app/views/manage/questions/_model_filter.html.erb +34 -0
  8. data/app/views/manage/questions/_question.html.erb +27 -0
  9. data/app/views/manage/questions/edit.html.erb +6 -0
  10. data/app/views/manage/questions/index.html.erb +32 -0
  11. data/app/views/manage/questions/new.html.erb +6 -0
  12. data/app/views/manage/questions/show.html.erb +29 -0
  13. data/config/locales/ru.yml +16 -0
  14. data/config/locales/uk.yml +16 -0
  15. data/config/routes.rb +7 -0
  16. data/lib/generators/sunrise/questions/USAGE +12 -0
  17. data/lib/generators/sunrise/questions/install_generator.rb +34 -0
  18. data/lib/generators/sunrise/questions/templates/create_questions.rb +20 -0
  19. data/lib/generators/sunrise/questions/templates/question.rb +5 -0
  20. data/lib/sunrise-questions.rb +1 -0
  21. data/lib/sunrise/models/question.rb +34 -0
  22. data/lib/sunrise/questions.rb +12 -0
  23. data/lib/sunrise/questions/engine.rb +18 -0
  24. data/lib/sunrise/questions/version.rb +5 -0
  25. data/spec/controllers/manage/questions_controller_spec.rb +96 -0
  26. data/spec/dummy/Rakefile +7 -0
  27. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  28. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  29. data/spec/dummy/app/helpers/manage/assets_helper.rb +2 -0
  30. data/spec/dummy/app/helpers/manage/base_helper.rb +81 -0
  31. data/spec/dummy/app/helpers/manage/pages_helper.rb +2 -0
  32. data/spec/dummy/app/helpers/manage/settings_helper.rb +2 -0
  33. data/spec/dummy/app/helpers/manage/structures_helper.rb +12 -0
  34. data/spec/dummy/app/helpers/manage/users_helper.rb +6 -0
  35. data/spec/dummy/app/models/defaults/ability.rb +39 -0
  36. data/spec/dummy/app/models/defaults/asset.rb +7 -0
  37. data/spec/dummy/app/models/defaults/attachment_file.rb +33 -0
  38. data/spec/dummy/app/models/defaults/avatar.rb +37 -0
  39. data/spec/dummy/app/models/defaults/header.rb +5 -0
  40. data/spec/dummy/app/models/defaults/page.rb +5 -0
  41. data/spec/dummy/app/models/defaults/picture.rb +35 -0
  42. data/spec/dummy/app/models/defaults/position_type.rb +7 -0
  43. data/spec/dummy/app/models/defaults/role.rb +20 -0
  44. data/spec/dummy/app/models/defaults/role_type.rb +8 -0
  45. data/spec/dummy/app/models/defaults/structure.rb +16 -0
  46. data/spec/dummy/app/models/defaults/structure_type.rb +9 -0
  47. data/spec/dummy/app/models/defaults/user.rb +47 -0
  48. data/spec/dummy/app/models/question.rb +5 -0
  49. data/spec/dummy/app/views/layouts/application.html.erb +37 -0
  50. data/spec/dummy/app/views/pages/show.html.erb +2 -0
  51. data/spec/dummy/app/views/shared/_notice.html.erb +17 -0
  52. data/spec/dummy/config.ru +4 -0
  53. data/spec/dummy/config/application.rb +46 -0
  54. data/spec/dummy/config/application.yml.sample +4 -0
  55. data/spec/dummy/config/boot.rb +10 -0
  56. data/spec/dummy/config/database.yml +22 -0
  57. data/spec/dummy/config/database.yml.sample +34 -0
  58. data/spec/dummy/config/environment.rb +5 -0
  59. data/spec/dummy/config/environments/development.rb +26 -0
  60. data/spec/dummy/config/environments/production.rb +49 -0
  61. data/spec/dummy/config/environments/test.rb +35 -0
  62. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  63. data/spec/dummy/config/initializers/devise.rb +204 -0
  64. data/spec/dummy/config/initializers/inflections.rb +10 -0
  65. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  66. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  67. data/spec/dummy/config/initializers/session_store.rb +8 -0
  68. data/spec/dummy/config/initializers/simple_form.rb +93 -0
  69. data/spec/dummy/config/initializers/sunrise.rb +7 -0
  70. data/spec/dummy/config/locales/devise.en.yml +53 -0
  71. data/spec/dummy/config/locales/en.yml +5 -0
  72. data/spec/dummy/config/locales/simple_form.en.yml +24 -0
  73. data/spec/dummy/config/logrotate-config.sample +9 -0
  74. data/spec/dummy/config/nginx-config-passenger.sample +51 -0
  75. data/spec/dummy/config/routes.rb +64 -0
  76. data/spec/dummy/db/development.sqlite3 +0 -0
  77. data/spec/dummy/db/migrate/20110801124809_sunrise_create_users.rb +29 -0
  78. data/spec/dummy/db/migrate/20110801124909_sunrise_create_roles.rb +16 -0
  79. data/spec/dummy/db/migrate/20110801125009_sunrise_create_structures.rb +27 -0
  80. data/spec/dummy/db/migrate/20110801125109_sunrise_create_pages.rb +17 -0
  81. data/spec/dummy/db/migrate/20110801125209_sunrise_create_assets.rb +28 -0
  82. data/spec/dummy/db/migrate/20110801125309_sunrise_create_headers.rb +20 -0
  83. data/spec/dummy/db/migrate/20110801161138_sunrise_create_questions.rb +20 -0
  84. data/spec/dummy/db/seeds.rb +25 -0
  85. data/spec/dummy/db/test.sqlite3 +0 -0
  86. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  87. data/spec/dummy/log/development.log +5 -0
  88. data/spec/dummy/log/production.log +0 -0
  89. data/spec/dummy/log/server.log +0 -0
  90. data/spec/dummy/log/test.log +1830 -0
  91. data/spec/dummy/public/404.html +26 -0
  92. data/spec/dummy/public/422.html +26 -0
  93. data/spec/dummy/public/500.html +26 -0
  94. data/spec/dummy/public/favicon.ico +0 -0
  95. data/spec/dummy/public/images/manage/add_post_bot.gif +0 -0
  96. data/spec/dummy/public/images/manage/add_post_top.gif +0 -0
  97. data/spec/dummy/public/images/manage/add_white_bot.gif +0 -0
  98. data/spec/dummy/public/images/manage/add_white_top.gif +0 -0
  99. data/spec/dummy/public/images/manage/arrow.png +0 -0
  100. data/spec/dummy/public/images/manage/back_but_lc.gif +0 -0
  101. data/spec/dummy/public/images/manage/back_but_rc.gif +0 -0
  102. data/spec/dummy/public/images/manage/bot_corn.gif +0 -0
  103. data/spec/dummy/public/images/manage/bot_duo_corn.gif +0 -0
  104. data/spec/dummy/public/images/manage/but_bg.png +0 -0
  105. data/spec/dummy/public/images/manage/but_block_lc.gif +0 -0
  106. data/spec/dummy/public/images/manage/but_block_rc.gif +0 -0
  107. data/spec/dummy/public/images/manage/but_freze_lc.gif +0 -0
  108. data/spec/dummy/public/images/manage/but_freze_rc.gif +0 -0
  109. data/spec/dummy/public/images/manage/but_gr.gif +0 -0
  110. data/spec/dummy/public/images/manage/but_gr_l.gif +0 -0
  111. data/spec/dummy/public/images/manage/but_gr_r.gif +0 -0
  112. data/spec/dummy/public/images/manage/but_search.gif +0 -0
  113. data/spec/dummy/public/images/manage/but_unfreze_lc.gif +0 -0
  114. data/spec/dummy/public/images/manage/but_unfreze_rc.gif +0 -0
  115. data/spec/dummy/public/images/manage/button_add_foto.gif +0 -0
  116. data/spec/dummy/public/images/manage/button_add_foto_ru.gif +0 -0
  117. data/spec/dummy/public/images/manage/button_add_foto_ua.gif +0 -0
  118. data/spec/dummy/public/images/manage/button_add_foto_uk.gif +0 -0
  119. data/spec/dummy/public/images/manage/cancelbutton.gif +0 -0
  120. data/spec/dummy/public/images/manage/dark_arr.gif +0 -0
  121. data/spec/dummy/public/images/manage/dark_arr_left.gif +0 -0
  122. data/spec/dummy/public/images/manage/dark_cross_ico.gif +0 -0
  123. data/spec/dummy/public/images/manage/dot.gif +0 -0
  124. data/spec/dummy/public/images/manage/duo_bg.gif +0 -0
  125. data/spec/dummy/public/images/manage/duo_bg_small.gif +0 -0
  126. data/spec/dummy/public/images/manage/duo_bg_small_blocked.gif +0 -0
  127. data/spec/dummy/public/images/manage/duo_bg_small_frozed.gif +0 -0
  128. data/spec/dummy/public/images/manage/duo_bg_small_notact.gif +0 -0
  129. data/spec/dummy/public/images/manage/duo_bot_small.gif +0 -0
  130. data/spec/dummy/public/images/manage/duo_bot_small_blocked.gif +0 -0
  131. data/spec/dummy/public/images/manage/duo_bot_small_frozed.gif +0 -0
  132. data/spec/dummy/public/images/manage/duo_bot_small_notact.gif +0 -0
  133. data/spec/dummy/public/images/manage/duo_top_small.gif +0 -0
  134. data/spec/dummy/public/images/manage/duo_top_small_blocked.gif +0 -0
  135. data/spec/dummy/public/images/manage/duo_top_small_frozed.gif +0 -0
  136. data/spec/dummy/public/images/manage/duo_top_small_notact.gif +0 -0
  137. data/spec/dummy/public/images/manage/edit_white_top.gif +0 -0
  138. data/spec/dummy/public/images/manage/empty.gif +0 -0
  139. data/spec/dummy/public/images/manage/filter_bot_bg.gif +0 -0
  140. data/spec/dummy/public/images/manage/filter_top_bg.gif +0 -0
  141. data/spec/dummy/public/images/manage/flag_en.gif +0 -0
  142. data/spec/dummy/public/images/manage/flag_en_nonact.gif +0 -0
  143. data/spec/dummy/public/images/manage/flag_ru.gif +0 -0
  144. data/spec/dummy/public/images/manage/flag_ru_nonact.gif +0 -0
  145. data/spec/dummy/public/images/manage/flag_ua.gif +0 -0
  146. data/spec/dummy/public/images/manage/flag_ua_nonact.gif +0 -0
  147. data/spec/dummy/public/images/manage/foto.jpg +0 -0
  148. data/spec/dummy/public/images/manage/ico_add.gif +0 -0
  149. data/spec/dummy/public/images/manage/ico_del.gif +0 -0
  150. data/spec/dummy/public/images/manage/ico_down.gif +0 -0
  151. data/spec/dummy/public/images/manage/ico_edit.gif +0 -0
  152. data/spec/dummy/public/images/manage/ico_settings.gif +0 -0
  153. data/spec/dummy/public/images/manage/ico_up.gif +0 -0
  154. data/spec/dummy/public/images/manage/input_bg.gif +0 -0
  155. data/spec/dummy/public/images/manage/l_but_corn.gif +0 -0
  156. data/spec/dummy/public/images/manage/minimise_but.gif +0 -0
  157. data/spec/dummy/public/images/manage/mp3.png +0 -0
  158. data/spec/dummy/public/images/manage/page_arr_hover.png +0 -0
  159. data/spec/dummy/public/images/manage/page_next_arr.gif +0 -0
  160. data/spec/dummy/public/images/manage/page_num_hover.gif +0 -0
  161. data/spec/dummy/public/images/manage/page_prev_arr.gif +0 -0
  162. data/spec/dummy/public/images/manage/panel/l_but_corn.gif +0 -0
  163. data/spec/dummy/public/images/manage/panel/maximise_but.gif +0 -0
  164. data/spec/dummy/public/images/manage/panel/r_but_corn.gif +0 -0
  165. data/spec/dummy/public/images/manage/panel/top_menu_arr.gif +0 -0
  166. data/spec/dummy/public/images/manage/panel/user_pic.gif +0 -0
  167. data/spec/dummy/public/images/manage/preloader.gif +0 -0
  168. data/spec/dummy/public/images/manage/r_but_corn.gif +0 -0
  169. data/spec/dummy/public/images/manage/select_bg.gif +0 -0
  170. data/spec/dummy/public/images/manage/select_corn.gif +0 -0
  171. data/spec/dummy/public/images/manage/struct_corn_lg.gif +0 -0
  172. data/spec/dummy/public/images/manage/struct_corn_llg.gif +0 -0
  173. data/spec/dummy/public/images/manage/struct_corn_lw.gif +0 -0
  174. data/spec/dummy/public/images/manage/struct_corn_rg.gif +0 -0
  175. data/spec/dummy/public/images/manage/struct_corn_rlg.gif +0 -0
  176. data/spec/dummy/public/images/manage/struct_corn_rw.gif +0 -0
  177. data/spec/dummy/public/images/manage/tab_gl.gif +0 -0
  178. data/spec/dummy/public/images/manage/tab_gr.gif +0 -0
  179. data/spec/dummy/public/images/manage/tab_wl.gif +0 -0
  180. data/spec/dummy/public/images/manage/tab_wr.gif +0 -0
  181. data/spec/dummy/public/images/manage/top_corn.gif +0 -0
  182. data/spec/dummy/public/images/manage/top_duo_corn.gif +0 -0
  183. data/spec/dummy/public/images/manage/top_menu_arr.gif +0 -0
  184. data/spec/dummy/public/images/manage/transp_cross.png +0 -0
  185. data/spec/dummy/public/images/manage/upload_progress.gif +0 -0
  186. data/spec/dummy/public/images/manage/user_act_lc.gif +0 -0
  187. data/spec/dummy/public/images/manage/user_act_rc.gif +0 -0
  188. data/spec/dummy/public/images/manage/user_ico.gif +0 -0
  189. data/spec/dummy/public/images/manage/user_pic.gif +0 -0
  190. data/spec/dummy/public/images/manage/user_pic_small.gif +0 -0
  191. data/spec/dummy/public/images/manage/user_pic_thumb.gif +0 -0
  192. data/spec/dummy/public/javascripts/application.js +2 -0
  193. data/spec/dummy/public/javascripts/controls.js +965 -0
  194. data/spec/dummy/public/javascripts/datepicker/jquery-ui-i18n.js +1176 -0
  195. data/spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-ru.js +37 -0
  196. data/spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-uk.js +37 -0
  197. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  198. data/spec/dummy/public/javascripts/effects.js +1123 -0
  199. data/spec/dummy/public/javascripts/fileupload/fileuploader-input.js +217 -0
  200. data/spec/dummy/public/javascripts/fileupload/fileuploader.css +31 -0
  201. data/spec/dummy/public/javascripts/fileupload/fileuploader.js +1288 -0
  202. data/spec/dummy/public/javascripts/jquery-ui-timepicker-addon.js +911 -0
  203. data/spec/dummy/public/javascripts/jquery.cookie.js +97 -0
  204. data/spec/dummy/public/javascripts/jquery.fancybox-1.3.4.pack.js +46 -0
  205. data/spec/dummy/public/javascripts/jquery.tmpl.min.js +10 -0
  206. data/spec/dummy/public/javascripts/manage-fileuploader.js +182 -0
  207. data/spec/dummy/public/javascripts/manage.js +294 -0
  208. data/spec/dummy/public/javascripts/preloader.js +47 -0
  209. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  210. data/spec/dummy/public/javascripts/rails.js +331 -0
  211. data/spec/dummy/public/stylesheets/application.css +1 -0
  212. data/spec/dummy/public/stylesheets/fancybox/images/blank.gif +0 -0
  213. data/spec/dummy/public/stylesheets/fancybox/images/fancy_close.png +0 -0
  214. data/spec/dummy/public/stylesheets/fancybox/images/fancy_loading.png +0 -0
  215. data/spec/dummy/public/stylesheets/fancybox/images/fancy_nav_left.png +0 -0
  216. data/spec/dummy/public/stylesheets/fancybox/images/fancy_nav_right.png +0 -0
  217. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_e.png +0 -0
  218. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_n.png +0 -0
  219. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_ne.png +0 -0
  220. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_nw.png +0 -0
  221. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_s.png +0 -0
  222. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_se.png +0 -0
  223. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_sw.png +0 -0
  224. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_w.png +0 -0
  225. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_left.png +0 -0
  226. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_main.png +0 -0
  227. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_over.png +0 -0
  228. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_right.png +0 -0
  229. data/spec/dummy/public/stylesheets/fancybox/images/fancybox-x.png +0 -0
  230. data/spec/dummy/public/stylesheets/fancybox/images/fancybox-y.png +0 -0
  231. data/spec/dummy/public/stylesheets/fancybox/images/fancybox.png +0 -0
  232. data/spec/dummy/public/stylesheets/fancybox/jquery.fancybox-1.3.4.css +359 -0
  233. data/spec/dummy/public/stylesheets/manage/buttons.css +42 -0
  234. data/spec/dummy/public/stylesheets/manage/ie.css +16 -0
  235. data/spec/dummy/public/stylesheets/manage/main.css +1108 -0
  236. data/spec/dummy/public/stylesheets/manage/panel.css +126 -0
  237. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  238. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  239. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  240. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  241. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  242. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  243. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  244. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  245. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  246. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  247. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  248. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  249. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  250. data/spec/dummy/public/stylesheets/smoothness/jquery-ui-1.8.13.custom.css +578 -0
  251. data/spec/dummy/script/rails +6 -0
  252. data/spec/factories/question_factory.rb +10 -0
  253. data/spec/factories/structure_factory.rb +22 -0
  254. data/spec/factories/user_factory.rb +48 -0
  255. data/spec/generators/install_generator_spec.rb +24 -0
  256. data/spec/integration/navigation_spec.rb +9 -0
  257. data/spec/models/question_spec.rb +30 -0
  258. data/spec/spec.opts +2 -0
  259. data/spec/spec_helper.rb +57 -0
  260. data/spec/sunrise_questions_spec.rb +7 -0
  261. data/spec/support/helpers/controller_macros.rb +40 -0
  262. data/spec/tmp/app/models/question.rb +5 -0
  263. data/spec/tmp/db/migrate/20110801173811_sunrise_create_questions.rb +20 -0
  264. metadata +582 -0
@@ -0,0 +1,28 @@
1
+ class SunriseCreateAssets < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :assets do |t|
4
+ t.string :data_file_name, :null => false
5
+ t.string :data_content_type
6
+ t.integer :data_file_size
7
+
8
+ t.integer :assetable_id, :null => false
9
+ t.string :assetable_type, :limit => 25, :null => false
10
+ t.string :type, :limit => 25
11
+ t.string :guid, :limit => 10
12
+
13
+ t.integer :locale, :limit => 1, :default => 0
14
+ t.integer :user_id
15
+ t.integer :sort_order, :default => 0
16
+
17
+ t.timestamps
18
+ end
19
+
20
+ add_index "assets", ["assetable_type", "type", "assetable_id"]
21
+ add_index "assets", ["assetable_type", "assetable_id"]
22
+ add_index "assets", ["user_id"]
23
+ end
24
+
25
+ def self.down
26
+ drop_table :assets
27
+ end
28
+ end
@@ -0,0 +1,20 @@
1
+ class SunriseCreateHeaders < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :headers do |t|
4
+ t.string :title
5
+ t.string :keywords
6
+ t.text :description
7
+
8
+ t.string :headerable_type, :limit => 30, :null => false
9
+ t.integer :headerable_id, :null => false
10
+
11
+ t.timestamps
12
+ end
13
+
14
+ add_index :headers, [:headerable_type, :headerable_id], :uniq => true, :name => "fk_headerable"
15
+ end
16
+
17
+ def self.down
18
+ drop_table :headers
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ class SunriseCreateQuestions < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :questions do |t|
4
+ t.integer :structure_id
5
+ t.string :title, :null => false
6
+ t.text :content
7
+
8
+ t.boolean :is_visible, :default => true
9
+ t.integer :sort_order, :default => 0
10
+
11
+ t.timestamps
12
+ end
13
+
14
+ add_index :questions, :structure_id
15
+ end
16
+
17
+ def self.down
18
+ drop_table :questions
19
+ end
20
+ end
@@ -0,0 +1,25 @@
1
+ def insert_user
2
+ User.truncate_table
3
+ Role.truncate_table
4
+ password = Devise.friendly_token
5
+
6
+ admin = User.new(:name=>'Administrator', :email=>'dev@aimbulance.com',
7
+ :password=>password, :password_confirmation=>password)
8
+ admin.login = 'admin' if admin.respond_to?(:login)
9
+ admin.roles.build(:role_type => RoleType.admin)
10
+ admin.skip_confirmation!
11
+ admin.save!
12
+
13
+ puts "Admin: #{admin.email}, #{admin.password}"
14
+ end
15
+
16
+ def insert_structures
17
+ Structure.truncate_table
18
+
19
+ main_page = Structure.create!(:title => "Главная страница", :slug => "main-page", :structure_type => StructureType.main, :parent => nil)
20
+ #Structure.create!(:title => "Трансляции", :slug => "broadcasts", :structure_type => StructureType.broadcasts, :parent => main_page)
21
+ #Structure.create!(:title => "Прямые репортажи", :slug => "posts", :structure_type => StructureType.posts, :parent => main_page)
22
+ end
23
+
24
+ insert_user
25
+ insert_structures
@@ -0,0 +1,13 @@
1
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
2
+ <%%= f.error_notification %>
3
+
4
+ <div class="inputs">
5
+ <%- attributes.each do |attribute| -%>
6
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
7
+ <%- end -%>
8
+ </div>
9
+
10
+ <div class="actions">
11
+ <%%= f.button :submit %>
12
+ </div>
13
+ <%% end %>
@@ -0,0 +1,5 @@
1
+ DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from /var/www/gems/sunrise-questions/spec/dummy/config/environment.rb:5)
2
+ DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from /var/www/gems/sunrise-questions/spec/dummy/config/environment.rb:5)
3
+ DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from /var/www/gems/sunrise-questions/spec/dummy/config/environment.rb:5)
4
+ DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from /var/www/gems/sunrise-questions/spec/dummy/config/environment.rb:5)
5
+ DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3.1 onwards you will need to install prototype-rails to continue to use RJS templates . (called from /var/www/gems/sunrise-questions/spec/dummy/config/environment.rb:5)
File without changes
File without changes
@@ -0,0 +1,1830 @@
1
+ SQL (0.4ms)  SELECT name
2
+ FROM sqlite_master
3
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
+ 
5
+ SQL (0.1ms) SELECT name
6
+ FROM sqlite_master
7
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8
+ SQL (0.1ms)  SELECT name
9
+ FROM sqlite_master
10
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
11
+ 
12
+ SQL (0.2ms) SELECT name
13
+ FROM sqlite_master
14
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
+ SQL (0.1ms) select sqlite_version(*)
16
+ SQL (133.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
17
+ SQL (0.2ms) PRAGMA index_list("schema_migrations")
18
+ SQL (89.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
19
+ SQL (0.3ms)  SELECT name
20
+ FROM sqlite_master
21
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
22
+ 
23
+ SQL (0.2ms) SELECT name
24
+ FROM sqlite_master
25
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
26
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
27
+ Migrating to SunriseCreateUsers (20110801124809)
28
+ SQL (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(150), "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(128) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "failed_attempts" integer DEFAULT 0, "locked_at" datetime, "password_salt" varchar(255), "created_at" datetime, "updated_at" datetime)
29
+ SQL (0.1ms) PRAGMA index_list("users")
30
+ SQL (0.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
31
+ SQL (0.1ms) PRAGMA index_list("users")
32
+ SQL (0.1ms) PRAGMA index_info('index_users_on_email')
33
+ SQL (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
34
+ SQL (0.1ms) PRAGMA index_list("users")
35
+ SQL (0.1ms) PRAGMA index_info('index_users_on_reset_password_token')
36
+ SQL (0.1ms) PRAGMA index_info('index_users_on_email')
37
+ SQL (0.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
38
+ SQL (0.2ms) SELECT name
39
+ FROM sqlite_master
40
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
41
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801124809')
42
+ Migrating to SunriseCreateRoles (20110801124909)
43
+ SQL (0.5ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "role_type" integer(1) DEFAULT 0, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
44
+ SQL (0.1ms) PRAGMA index_list("roles")
45
+ SQL (0.2ms) CREATE INDEX "fk_user" ON "roles" ("user_id")
46
+ SQL (0.2ms)  SELECT name
47
+ FROM sqlite_master
48
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
49
+ 
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801124909')
51
+ Migrating to SunriseCreateStructures (20110801125009)
52
+ SQL (0.6ms) CREATE TABLE "structures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "slug" varchar(25) NOT NULL, "kind" integer(1) DEFAULT 0, "position" integer(2) DEFAULT 0, "is_visible" boolean DEFAULT 't', "redirect_url" varchar(255), "parent_id" integer, "lft" integer DEFAULT 0, "rgt" integer DEFAULT 0, "depth" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) 
53
+ SQL (0.1ms) PRAGMA index_list("structures")
54
+ SQL (0.2ms) CREATE INDEX "index_structures_on_kind_and_slug" ON "structures" ("kind", "slug")
55
+ SQL (0.1ms) PRAGMA index_list("structures")
56
+ SQL (0.1ms) PRAGMA index_info('index_structures_on_kind_and_slug')
57
+ SQL (0.2ms) CREATE INDEX "index_structures_on_parent_id" ON "structures" ("parent_id")
58
+ SQL (0.1ms) PRAGMA index_list("structures")
59
+ SQL (0.1ms) PRAGMA index_info('index_structures_on_parent_id')
60
+ SQL (0.1ms) PRAGMA index_info('index_structures_on_kind_and_slug')
61
+ SQL (0.2ms) CREATE INDEX "index_structures_on_lft_and_rgt" ON "structures" ("lft", "rgt")
62
+ SQL (0.2ms)  SELECT name
63
+ FROM sqlite_master
64
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
65
+ 
66
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125009')
67
+ Migrating to SunriseCreatePages (20110801125109)
68
+ SQL (0.3ms) CREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "content" text, "structure_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
69
+ SQL (0.0ms) PRAGMA index_list("pages")
70
+ SQL (0.1ms) CREATE INDEX "fk_pages" ON "pages" ("structure_id")
71
+ SQL (0.1ms) SELECT name
72
+ FROM sqlite_master
73
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
74
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125109')
75
+ Migrating to SunriseCreateAssets (20110801125209)
76
+ SQL (0.5ms) CREATE TABLE "assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer NOT NULL, "assetable_type" varchar(25) NOT NULL, "type" varchar(25), "guid" varchar(10), "locale" integer(1) DEFAULT 0, "user_id" integer, "sort_order" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
77
+ SQL (0.1ms) PRAGMA index_list("assets")
78
+ SQL (0.3ms) CREATE INDEX "index_assets_on_assetable_type_and_type_and_assetable_id" ON "assets" ("assetable_type", "type", "assetable_id")
79
+ SQL (0.2ms) PRAGMA index_list("assets")
80
+ SQL (0.2ms) PRAGMA index_info('index_assets_on_assetable_type_and_type_and_assetable_id')
81
+ SQL (0.4ms) CREATE INDEX "index_assets_on_assetable_type_and_assetable_id" ON "assets" ("assetable_type", "assetable_id")
82
+ SQL (0.1ms) PRAGMA index_list("assets")
83
+ SQL (0.1ms) PRAGMA index_info('index_assets_on_assetable_type_and_assetable_id')
84
+ SQL (0.1ms) PRAGMA index_info('index_assets_on_assetable_type_and_type_and_assetable_id')
85
+ SQL (0.2ms) CREATE INDEX "index_assets_on_user_id" ON "assets" ("user_id")
86
+ SQL (0.3ms) SELECT name
87
+ FROM sqlite_master
88
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
89
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125209')
90
+ Migrating to SunriseCreateHeaders (20110801125309)
91
+ SQL (0.5ms) CREATE TABLE "headers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "keywords" varchar(255), "description" text, "headerable_type" varchar(30) NOT NULL, "headerable_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
92
+ SQL (0.1ms) PRAGMA index_list("headers")
93
+ SQL (0.2ms) CREATE INDEX "fk_headerable" ON "headers" ("headerable_type", "headerable_id")
94
+ SQL (0.3ms)  SELECT name
95
+ FROM sqlite_master
96
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
97
+ 
98
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801125309')
99
+ SQL (0.7ms)  SELECT name
100
+ FROM sqlite_master
101
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
102
+ 
103
+ SQL (0.3ms) SELECT name
104
+ FROM sqlite_master
105
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
106
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
107
+ Migrating to SunriseCreateUsers (20110801124809)
108
+ Migrating to SunriseCreateRoles (20110801124909)
109
+ Migrating to SunriseCreateStructures (20110801125009)
110
+ Migrating to SunriseCreatePages (20110801125109)
111
+ Migrating to SunriseCreateAssets (20110801125209)
112
+ Migrating to SunriseCreateHeaders (20110801125309)
113
+ SQL (0.7ms)  SELECT name
114
+ FROM sqlite_master
115
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
116
+ 
117
+ SQL (0.2ms) SELECT name
118
+ FROM sqlite_master
119
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
120
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
121
+ Migrating to SunriseCreateUsers (20110801124809)
122
+ Migrating to SunriseCreateRoles (20110801124909)
123
+ Migrating to SunriseCreateStructures (20110801125009)
124
+ Migrating to SunriseCreatePages (20110801125109)
125
+ Migrating to SunriseCreateAssets (20110801125209)
126
+ Migrating to SunriseCreateHeaders (20110801125309)
127
+ SQL (0.2ms) SELECT name
128
+ FROM sqlite_master
129
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
130
+ SQL (176.6ms) DELETE FROM "users";
131
+ SQL (99.1ms) DELETE FROM "roles";
132
+ SQL (110.4ms) DELETE FROM "structures";
133
+ SQL (110.0ms) DELETE FROM "pages";
134
+ SQL (110.1ms) DELETE FROM "assets";
135
+ SQL (187.5ms) DELETE FROM "headers";
136
+ SQL (0.4ms)  SELECT name
137
+ FROM sqlite_master
138
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
139
+ 
140
+ SQL (96.3ms) DELETE FROM "users";
141
+ SQL (99.2ms) DELETE FROM "roles";
142
+ SQL (134.6ms) DELETE FROM "structures";
143
+ SQL (163.2ms) DELETE FROM "pages";
144
+ SQL (99.4ms) DELETE FROM "assets";
145
+ SQL (99.1ms) DELETE FROM "headers";
146
+ SQL (0.3ms) SELECT name
147
+ FROM sqlite_master
148
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
149
+ SQL (130.0ms) DELETE FROM "users";
150
+ SQL (99.1ms) DELETE FROM "roles";
151
+ SQL (132.5ms) DELETE FROM "structures";
152
+ SQL (110.1ms) DELETE FROM "pages";
153
+ SQL (99.2ms) DELETE FROM "assets";
154
+ SQL (110.2ms) DELETE FROM "headers";
155
+ SQL (0.8ms)  SELECT name
156
+ FROM sqlite_master
157
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
158
+ 
159
+ SQL (0.3ms) SELECT name
160
+ FROM sqlite_master
161
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
162
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
163
+ Migrating to SunriseCreateUsers (20110801124809)
164
+ Migrating to SunriseCreateRoles (20110801124909)
165
+ Migrating to SunriseCreateStructures (20110801125009)
166
+ Migrating to SunriseCreatePages (20110801125109)
167
+ Migrating to SunriseCreateAssets (20110801125209)
168
+ Migrating to SunriseCreateHeaders (20110801125309)
169
+ SQL (0.3ms) SELECT name
170
+ FROM sqlite_master
171
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
172
+ SQL (128.0ms) DELETE FROM "users";
173
+ SQL (110.2ms) DELETE FROM "roles";
174
+ SQL (99.3ms) DELETE FROM "structures";
175
+ SQL (99.1ms) DELETE FROM "pages";
176
+ SQL (88.1ms) DELETE FROM "assets";
177
+ SQL (121.2ms) DELETE FROM "headers";
178
+ SQL (0.4ms)  SELECT name
179
+ FROM sqlite_master
180
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
181
+ 
182
+ SQL (85.3ms) DELETE FROM "users";
183
+ SQL (88.1ms) DELETE FROM "roles";
184
+ SQL (110.4ms) DELETE FROM "structures";
185
+ SQL (99.1ms) DELETE FROM "pages";
186
+ SQL (99.2ms) DELETE FROM "assets";
187
+ SQL (99.1ms) DELETE FROM "headers";
188
+ SQL (0.5ms) SELECT name
189
+ FROM sqlite_master
190
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
191
+ SQL (100.2ms) DELETE FROM "users";
192
+ SQL (66.0ms) DELETE FROM "roles";
193
+ SQL (99.3ms) DELETE FROM "structures";
194
+ SQL (110.2ms) DELETE FROM "pages";
195
+ SQL (77.2ms) DELETE FROM "assets";
196
+ SQL (99.0ms) DELETE FROM "headers";
197
+ SQL (0.7ms)  SELECT name
198
+ FROM sqlite_master
199
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
200
+ 
201
+ SQL (0.3ms) SELECT name
202
+ FROM sqlite_master
203
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
204
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
205
+ Migrating to SunriseCreateUsers (20110801124809)
206
+ Migrating to SunriseCreateRoles (20110801124909)
207
+ Migrating to SunriseCreateStructures (20110801125009)
208
+ Migrating to SunriseCreatePages (20110801125109)
209
+ Migrating to SunriseCreateAssets (20110801125209)
210
+ Migrating to SunriseCreateHeaders (20110801125309)
211
+ SQL (0.3ms) SELECT name
212
+ FROM sqlite_master
213
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
214
+ SQL (116.6ms) DELETE FROM "users";
215
+ SQL (88.0ms) DELETE FROM "roles";
216
+ SQL (121.5ms) DELETE FROM "structures";
217
+ SQL (88.0ms) DELETE FROM "pages";
218
+ SQL (88.2ms) DELETE FROM "assets";
219
+ SQL (99.1ms) DELETE FROM "headers";
220
+ SQL (0.4ms)  SELECT name
221
+ FROM sqlite_master
222
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
223
+ 
224
+ SQL (85.2ms) DELETE FROM "users";
225
+ SQL (88.0ms) DELETE FROM "roles";
226
+ SQL (99.4ms) DELETE FROM "structures";
227
+ SQL (110.2ms) DELETE FROM "pages";
228
+ SQL (132.4ms) DELETE FROM "assets";
229
+ SQL (110.2ms) DELETE FROM "headers";
230
+ SQL (0.2ms) SELECT name
231
+ FROM sqlite_master
232
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
233
+ SQL (147.6ms) DELETE FROM "users";
234
+ SQL (121.2ms) DELETE FROM "roles";
235
+ SQL (99.3ms) DELETE FROM "structures";
236
+ SQL (110.2ms) DELETE FROM "pages";
237
+ SQL (88.2ms) DELETE FROM "assets";
238
+ SQL (88.0ms) DELETE FROM "headers";
239
+ SQL (0.7ms)  SELECT name
240
+ FROM sqlite_master
241
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
242
+ 
243
+ SQL (0.3ms) SELECT name
244
+ FROM sqlite_master
245
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
246
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
247
+ Migrating to SunriseCreateUsers (20110801124809)
248
+ Migrating to SunriseCreateRoles (20110801124909)
249
+ Migrating to SunriseCreateStructures (20110801125009)
250
+ Migrating to SunriseCreatePages (20110801125109)
251
+ Migrating to SunriseCreateAssets (20110801125209)
252
+ Migrating to SunriseCreateHeaders (20110801125309)
253
+ SQL (0.3ms) SELECT name
254
+ FROM sqlite_master
255
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
256
+ SQL (181.4ms) DELETE FROM "users";
257
+ SQL (121.2ms) DELETE FROM "roles";
258
+ SQL (99.4ms) DELETE FROM "structures";
259
+ SQL (121.2ms) DELETE FROM "pages";
260
+ SQL (99.1ms) DELETE FROM "assets";
261
+ SQL (99.1ms) DELETE FROM "headers";
262
+ SQL (0.6ms)  SELECT name
263
+ FROM sqlite_master
264
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
265
+ 
266
+ SQL (117.3ms) DELETE FROM "users";
267
+ SQL (99.1ms) DELETE FROM "roles";
268
+ SQL (99.3ms) DELETE FROM "structures";
269
+ SQL (88.2ms) DELETE FROM "pages";
270
+ SQL (88.2ms) DELETE FROM "assets";
271
+ SQL (99.1ms) DELETE FROM "headers";
272
+ SQL (0.4ms) SELECT name
273
+ FROM sqlite_master
274
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
275
+ SQL (131.2ms) DELETE FROM "users";
276
+ SQL (98.7ms) DELETE FROM "roles";
277
+ SQL (66.3ms) DELETE FROM "structures";
278
+ SQL (110.2ms) DELETE FROM "pages";
279
+ SQL (110.3ms) DELETE FROM "assets";
280
+ SQL (88.1ms) DELETE FROM "headers";
281
+ SQL (0.7ms)  SELECT name
282
+ FROM sqlite_master
283
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
284
+ 
285
+ SQL (0.1ms) SELECT name
286
+ FROM sqlite_master
287
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
288
+ SQL (0.3ms)  SELECT name
289
+ FROM sqlite_master
290
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
291
+ 
292
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
293
+ Migrating to SunriseCreateUsers (20110801124809)
294
+ Migrating to SunriseCreateRoles (20110801124909)
295
+ Migrating to SunriseCreateStructures (20110801125009)
296
+ Migrating to SunriseCreatePages (20110801125109)
297
+ Migrating to SunriseCreateAssets (20110801125209)
298
+ Migrating to SunriseCreateHeaders (20110801125309)
299
+ Migrating to SunriseCreateQuestions (20110801161138)
300
+ SQL (0.1ms) select sqlite_version(*)
301
+ SQL (0.4ms) CREATE TABLE "questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "structure_id" integer, "title" varchar(255) NOT NULL, "content" text, "is_visible" boolean DEFAULT 't', "sort_order" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
302
+ SQL (0.0ms) PRAGMA index_list("questions")
303
+ SQL (0.1ms) CREATE INDEX "index_questions_on_structure_id" ON "questions" ("structure_id")
304
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110801161138')
305
+ SQL (0.3ms) SELECT name
306
+ FROM sqlite_master
307
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
308
+ SQL (95.6ms) DELETE FROM "users";
309
+ SQL (88.1ms) DELETE FROM "roles";
310
+ SQL (77.3ms) DELETE FROM "structures";
311
+ SQL (99.2ms) DELETE FROM "pages";
312
+ SQL (99.3ms) DELETE FROM "assets";
313
+ SQL (77.0ms) DELETE FROM "headers";
314
+ SQL (83.1ms) DELETE FROM "questions";
315
+ SQL (0.4ms) SELECT name
316
+ FROM sqlite_master
317
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
318
+ SQL (79.2ms) DELETE FROM "users";
319
+ SQL (99.1ms) DELETE FROM "roles";
320
+ SQL (99.3ms) DELETE FROM "structures";
321
+ SQL (77.0ms) DELETE FROM "pages";
322
+ SQL (88.3ms) DELETE FROM "assets";
323
+ SQL (99.0ms) DELETE FROM "headers";
324
+ SQL (94.1ms) DELETE FROM "questions";
325
+ SQL (0.4ms) SELECT name
326
+ FROM sqlite_master
327
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
328
+ SQL (95.6ms) DELETE FROM "users";
329
+ SQL (88.2ms) DELETE FROM "roles";
330
+ SQL (77.3ms) DELETE FROM "structures";
331
+ SQL (77.0ms) DELETE FROM "pages";
332
+ SQL (77.2ms) DELETE FROM "assets";
333
+ SQL (99.2ms) DELETE FROM "headers";
334
+ SQL (83.0ms) DELETE FROM "questions";
335
+ SQL (0.1ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'questions') LIMIT 1
336
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
337
+ AREL (0.2ms) INSERT INTO "structures" ("is_visible", "redirect_url", "created_at", "slug", "kind", "parent_id", "updated_at", "lft", "depth", "rgt", "position", "title") VALUES ('t', NULL, '2011-08-01 13:46:06.600271', 'questions', 0, NULL, '2011-08-01 13:46:06.600271', 1, 0, 2, 0, 'questions')
338
+ SQL (0.6ms)  SELECT name
339
+ FROM sqlite_master
340
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
341
+ 
342
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "structure_id", "title", "created_at", "sort_order", "is_visible", "content") VALUES ('2011-08-01 13:46:06.710227', 1, 'Test', '2011-08-01 13:46:06.710227', 0, 't', 'Test')
343
+ SQL (0.3ms)  SELECT name
344
+ FROM sqlite_master
345
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
346
+ 
347
+ SQL (81.4ms) DELETE FROM "users";
348
+ SQL (77.0ms) DELETE FROM "roles";
349
+ SQL (77.3ms) DELETE FROM "structures";
350
+ SQL (54.9ms) DELETE FROM "pages";
351
+ SQL (55.1ms) DELETE FROM "assets";
352
+ SQL (54.9ms) DELETE FROM "headers";
353
+ SQL (66.1ms) DELETE FROM "questions";
354
+ SQL (0.7ms)  SELECT name
355
+ FROM sqlite_master
356
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
357
+ 
358
+ SQL (0.3ms) SELECT name
359
+ FROM sqlite_master
360
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
361
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
362
+ Migrating to SunriseCreateUsers (20110801124809)
363
+ Migrating to SunriseCreateRoles (20110801124909)
364
+ Migrating to SunriseCreateStructures (20110801125009)
365
+ Migrating to SunriseCreatePages (20110801125109)
366
+ Migrating to SunriseCreateAssets (20110801125209)
367
+ Migrating to SunriseCreateHeaders (20110801125309)
368
+ Migrating to SunriseCreateQuestions (20110801161138)
369
+ SQL (0.3ms) SELECT name
370
+ FROM sqlite_master
371
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
372
+ SQL (150.5ms) DELETE FROM "users";
373
+ SQL (110.2ms) DELETE FROM "roles";
374
+ SQL (187.7ms) DELETE FROM "structures";
375
+ SQL (143.2ms) DELETE FROM "pages";
376
+ SQL (143.5ms) DELETE FROM "assets";
377
+ SQL (121.2ms) DELETE FROM "headers";
378
+ SQL (99.0ms) DELETE FROM "questions";
379
+ SQL (0.4ms) SELECT name
380
+ FROM sqlite_master
381
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
382
+ SQL (85.3ms) DELETE FROM "users";
383
+ SQL (143.3ms) DELETE FROM "roles";
384
+ SQL (132.5ms) DELETE FROM "structures";
385
+ SQL (154.4ms) DELETE FROM "pages";
386
+ SQL (143.4ms) DELETE FROM "assets";
387
+ SQL (99.1ms) DELETE FROM "headers";
388
+ SQL (99.1ms) DELETE FROM "questions";
389
+ SQL (0.5ms) SELECT name
390
+ FROM sqlite_master
391
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
392
+ SQL (118.9ms) DELETE FROM "users";
393
+ SQL (99.0ms) DELETE FROM "roles";
394
+ SQL (110.4ms) DELETE FROM "structures";
395
+ SQL (187.5ms) DELETE FROM "pages";
396
+ SQL (143.5ms) DELETE FROM "assets";
397
+ SQL (110.2ms) DELETE FROM "headers";
398
+ SQL (143.3ms) DELETE FROM "questions";
399
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'questions') LIMIT 1
400
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
401
+ AREL (0.2ms) INSERT INTO "structures" ("lft", "rgt", "parent_id", "updated_at", "depth", "redirect_url", "kind", "created_at", "slug", "is_visible", "title", "position") VALUES (1, 2, NULL, '2011-08-01 13:59:50.326181', 0, NULL, 0, '2011-08-01 13:59:50.326181', 'questions', 't', 'questions', 0)
402
+ AREL (0.3ms) INSERT INTO "questions" ("structure_id", "updated_at", "content", "sort_order", "title", "created_at", "is_visible") VALUES (2, '2011-08-01 13:59:50.438527', 'Test', 0, 'Test', '2011-08-01 13:59:50.438527', 't')
403
+ SQL (0.3ms) SELECT name
404
+ FROM sqlite_master
405
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
406
+ SQL (114.4ms) DELETE FROM "users";
407
+ SQL (187.4ms) DELETE FROM "roles";
408
+ SQL (132.5ms) DELETE FROM "structures";
409
+ SQL (143.2ms) DELETE FROM "pages";
410
+ SQL (99.3ms) DELETE FROM "assets";
411
+ SQL (143.3ms) DELETE FROM "headers";
412
+ SQL (154.3ms) DELETE FROM "questions";
413
+ SQL (0.8ms)  SELECT name
414
+ FROM sqlite_master
415
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
416
+ 
417
+ SQL (0.3ms) SELECT name
418
+ FROM sqlite_master
419
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
420
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
421
+ Migrating to SunriseCreateUsers (20110801124809)
422
+ Migrating to SunriseCreateRoles (20110801124909)
423
+ Migrating to SunriseCreateStructures (20110801125009)
424
+ Migrating to SunriseCreatePages (20110801125109)
425
+ Migrating to SunriseCreateAssets (20110801125209)
426
+ Migrating to SunriseCreateHeaders (20110801125309)
427
+ Migrating to SunriseCreateQuestions (20110801161138)
428
+ SQL (0.3ms) SELECT name
429
+ FROM sqlite_master
430
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
431
+ SQL (182.0ms) DELETE FROM "users";
432
+ SQL (110.1ms) DELETE FROM "roles";
433
+ SQL (77.3ms) DELETE FROM "structures";
434
+ SQL (65.9ms) DELETE FROM "pages";
435
+ SQL (132.3ms) DELETE FROM "assets";
436
+ SQL (99.2ms) DELETE FROM "headers";
437
+ SQL (132.3ms) DELETE FROM "questions";
438
+ SQL (0.9ms)  SELECT name
439
+ FROM sqlite_master
440
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
441
+ 
442
+ SQL (0.3ms) SELECT name
443
+ FROM sqlite_master
444
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
445
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
446
+ Migrating to SunriseCreateUsers (20110801124809)
447
+ Migrating to SunriseCreateRoles (20110801124909)
448
+ Migrating to SunriseCreateStructures (20110801125009)
449
+ Migrating to SunriseCreatePages (20110801125109)
450
+ Migrating to SunriseCreateAssets (20110801125209)
451
+ Migrating to SunriseCreateHeaders (20110801125309)
452
+ Migrating to SunriseCreateQuestions (20110801161138)
453
+ SQL (0.3ms) SELECT name
454
+ FROM sqlite_master
455
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
456
+ SQL (203.0ms) DELETE FROM "users";
457
+ SQL (88.0ms) DELETE FROM "roles";
458
+ SQL (121.4ms) DELETE FROM "structures";
459
+ SQL (110.2ms) DELETE FROM "pages";
460
+ SQL (121.3ms) DELETE FROM "assets";
461
+ SQL (110.2ms) DELETE FROM "headers";
462
+ SQL (105.1ms) DELETE FROM "questions";
463
+ SQL (0.4ms) SELECT name
464
+ FROM sqlite_master
465
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
466
+ SQL (300.1ms) DELETE FROM "users";
467
+ SQL (121.2ms) DELETE FROM "roles";
468
+ SQL (110.4ms) DELETE FROM "structures";
469
+ SQL (110.1ms) DELETE FROM "pages";
470
+ SQL (110.4ms) DELETE FROM "assets";
471
+ SQL (121.2ms) DELETE FROM "headers";
472
+ SQL (105.1ms) DELETE FROM "questions";
473
+ SQL (0.7ms) SELECT name
474
+ FROM sqlite_master
475
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
476
+ SQL (93.1ms) DELETE FROM "users";
477
+ SQL (110.2ms) DELETE FROM "roles";
478
+ SQL (99.3ms) DELETE FROM "structures";
479
+ SQL (121.2ms) DELETE FROM "pages";
480
+ SQL (110.3ms) DELETE FROM "assets";
481
+ SQL (99.0ms) DELETE FROM "headers";
482
+ SQL (110.1ms) DELETE FROM "questions";
483
+ SQL (0.1ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'questions') LIMIT 1
484
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
485
+ AREL (0.2ms) INSERT INTO "structures" ("kind", "is_visible", "redirect_url", "rgt", "updated_at", "slug", "parent_id", "depth", "position", "created_at", "title", "lft") VALUES (0, 't', NULL, 2, '2011-08-01 14:02:10.138817', 'questions', NULL, 0, 0, '2011-08-01 14:02:10.138817', 'questions', 1)
486
+ AREL (0.3ms) INSERT INTO "questions" ("sort_order", "is_visible", "content", "title", "structure_id", "updated_at", "created_at") VALUES (0, 't', 'Test', 'Test', 3, '2011-08-01 14:02:10.261272', '2011-08-01 14:02:10.261272')
487
+ SQL (0.3ms) SELECT name
488
+ FROM sqlite_master
489
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
490
+ SQL (81.9ms) DELETE FROM "users";
491
+ SQL (76.9ms) DELETE FROM "roles";
492
+ SQL (99.3ms) DELETE FROM "structures";
493
+ SQL (77.1ms) DELETE FROM "pages";
494
+ SQL (77.1ms) DELETE FROM "assets";
495
+ SQL (65.9ms) DELETE FROM "headers";
496
+ SQL (72.0ms) DELETE FROM "questions";
497
+ SQL (0.4ms) SELECT name
498
+ FROM sqlite_master
499
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
500
+ SQL (97.0ms) DELETE FROM "users";
501
+ SQL (77.1ms) DELETE FROM "roles";
502
+ SQL (99.4ms) DELETE FROM "structures";
503
+ SQL (99.0ms) DELETE FROM "pages";
504
+ SQL (99.4ms) DELETE FROM "assets";
505
+ SQL (99.1ms) DELETE FROM "headers";
506
+ SQL (83.0ms) DELETE FROM "questions";
507
+ SQL (0.8ms)  SELECT name
508
+ FROM sqlite_master
509
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
510
+ 
511
+ SQL (0.3ms) SELECT name
512
+ FROM sqlite_master
513
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
514
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
515
+ Migrating to SunriseCreateUsers (20110801124809)
516
+ Migrating to SunriseCreateRoles (20110801124909)
517
+ Migrating to SunriseCreateStructures (20110801125009)
518
+ Migrating to SunriseCreatePages (20110801125109)
519
+ Migrating to SunriseCreateAssets (20110801125209)
520
+ Migrating to SunriseCreateHeaders (20110801125309)
521
+ Migrating to SunriseCreateQuestions (20110801161138)
522
+ SQL (0.3ms) SELECT name
523
+ FROM sqlite_master
524
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
525
+ SQL (167.6ms) DELETE FROM "users";
526
+ SQL (110.2ms) DELETE FROM "roles";
527
+ SQL (99.4ms) DELETE FROM "structures";
528
+ SQL (88.1ms) DELETE FROM "pages";
529
+ SQL (110.4ms) DELETE FROM "assets";
530
+ SQL (110.1ms) DELETE FROM "headers";
531
+ SQL (121.1ms) DELETE FROM "questions";
532
+ SQL (0.4ms) SELECT name
533
+ FROM sqlite_master
534
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
535
+ SQL (96.3ms) DELETE FROM "users";
536
+ SQL (99.2ms) DELETE FROM "roles";
537
+ SQL (110.3ms) DELETE FROM "structures";
538
+ SQL (121.2ms) DELETE FROM "pages";
539
+ SQL (132.3ms) DELETE FROM "assets";
540
+ SQL (99.1ms) DELETE FROM "headers";
541
+ SQL (121.3ms) DELETE FROM "questions";
542
+ SQL (0.3ms) SELECT name
543
+ FROM sqlite_master
544
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
545
+ SQL (104.7ms) DELETE FROM "users";
546
+ SQL (88.0ms) DELETE FROM "roles";
547
+ SQL (77.2ms) DELETE FROM "structures";
548
+ SQL (154.4ms) DELETE FROM "pages";
549
+ SQL (99.2ms) DELETE FROM "assets";
550
+ SQL (99.1ms) DELETE FROM "headers";
551
+ SQL (110.2ms) DELETE FROM "questions";
552
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'questions') LIMIT 1
553
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
554
+ AREL (0.2ms) INSERT INTO "structures" ("is_visible", "updated_at", "parent_id", "kind", "depth", "redirect_url", "rgt", "lft", "title", "slug", "position", "created_at") VALUES ('t', '2011-08-01 14:02:44.491381', NULL, 0, 0, NULL, 2, 1, 'questions', 'questions', 0, '2011-08-01 14:02:44.491381')
555
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "sort_order", "title", "updated_at", "created_at", "is_visible", "content") VALUES (4, 0, 'Test', '2011-08-01 14:02:44.620197', '2011-08-01 14:02:44.620197', 't', 'Test')
556
+ SQL (0.3ms) SELECT name
557
+ FROM sqlite_master
558
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
559
+ SQL (68.8ms) DELETE FROM "users";
560
+ SQL (88.0ms) DELETE FROM "roles";
561
+ SQL (77.2ms) DELETE FROM "structures";
562
+ SQL (88.1ms) DELETE FROM "pages";
563
+ SQL (77.1ms) DELETE FROM "assets";
564
+ SQL (110.1ms) DELETE FROM "headers";
565
+ SQL (72.0ms) DELETE FROM "questions";
566
+ SQL (0.4ms) SELECT name
567
+ FROM sqlite_master
568
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
569
+ SQL (181.7ms) DELETE FROM "users";
570
+ SQL (110.1ms) DELETE FROM "roles";
571
+ SQL (77.3ms) DELETE FROM "structures";
572
+ SQL (66.0ms) DELETE FROM "pages";
573
+ SQL (66.2ms) DELETE FROM "assets";
574
+ SQL (66.1ms) DELETE FROM "headers";
575
+ SQL (72.0ms) DELETE FROM "questions";
576
+ SQL (0.7ms)  SELECT name
577
+ FROM sqlite_master
578
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
579
+ 
580
+ SQL (0.3ms) SELECT name
581
+ FROM sqlite_master
582
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
583
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
584
+ Migrating to SunriseCreateUsers (20110801124809)
585
+ Migrating to SunriseCreateRoles (20110801124909)
586
+ Migrating to SunriseCreateStructures (20110801125009)
587
+ Migrating to SunriseCreatePages (20110801125109)
588
+ Migrating to SunriseCreateAssets (20110801125209)
589
+ Migrating to SunriseCreateHeaders (20110801125309)
590
+ Migrating to SunriseCreateQuestions (20110801161138)
591
+ SQL (0.3ms) SELECT name
592
+ FROM sqlite_master
593
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
594
+ SQL (162.4ms) DELETE FROM "users";
595
+ SQL (99.1ms) DELETE FROM "roles";
596
+ SQL (121.5ms) DELETE FROM "structures";
597
+ SQL (77.0ms) DELETE FROM "pages";
598
+ SQL (132.4ms) DELETE FROM "assets";
599
+ SQL (88.0ms) DELETE FROM "headers";
600
+ SQL (138.3ms) DELETE FROM "questions";
601
+ SQL (0.4ms) SELECT name
602
+ FROM sqlite_master
603
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
604
+ SQL (123.4ms) DELETE FROM "users";
605
+ SQL (99.2ms) DELETE FROM "roles";
606
+ SQL (88.3ms) DELETE FROM "structures";
607
+ SQL (77.0ms) DELETE FROM "pages";
608
+ SQL (110.4ms) DELETE FROM "assets";
609
+ SQL (99.1ms) DELETE FROM "headers";
610
+ SQL (116.2ms) DELETE FROM "questions";
611
+ SQL (0.4ms) SELECT name
612
+ FROM sqlite_master
613
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
614
+ SQL (96.4ms) DELETE FROM "users";
615
+ SQL (88.0ms) DELETE FROM "roles";
616
+ SQL (88.3ms) DELETE FROM "structures";
617
+ SQL (110.3ms) DELETE FROM "pages";
618
+ SQL (99.2ms) DELETE FROM "assets";
619
+ SQL (99.3ms) DELETE FROM "headers";
620
+ SQL (105.1ms) DELETE FROM "questions";
621
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'questions') LIMIT 1
622
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
623
+ AREL (0.2ms) INSERT INTO "structures" ("slug", "depth", "rgt", "parent_id", "updated_at", "lft", "created_at", "kind", "position", "is_visible", "title", "redirect_url") VALUES ('questions', 0, 2, NULL, '2011-08-01 14:04:54.313038', 1, '2011-08-01 14:04:54.313038', 0, 0, 't', 'questions', NULL)
624
+ AREL (0.3ms) INSERT INTO "questions" ("title", "is_visible", "structure_id", "content", "updated_at", "created_at", "sort_order") VALUES ('Test', 't', 5, 'Test', '2011-08-01 14:04:54.481002', '2011-08-01 14:04:54.481002', 0)
625
+ SQL (0.3ms) SELECT name
626
+ FROM sqlite_master
627
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
628
+ SQL (140.8ms) DELETE FROM "users";
629
+ SQL (110.1ms) DELETE FROM "roles";
630
+ SQL (88.3ms) DELETE FROM "structures";
631
+ SQL (66.0ms) DELETE FROM "pages";
632
+ SQL (132.4ms) DELETE FROM "assets";
633
+ SQL (65.9ms) DELETE FROM "headers";
634
+ SQL (66.1ms) DELETE FROM "questions";
635
+ SQL (0.3ms) SELECT name
636
+ FROM sqlite_master
637
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
638
+ SQL (168.6ms) DELETE FROM "users";
639
+ SQL (66.0ms) DELETE FROM "roles";
640
+ SQL (88.3ms) DELETE FROM "structures";
641
+ SQL (54.9ms) DELETE FROM "pages";
642
+ SQL (132.5ms) DELETE FROM "assets";
643
+ SQL (54.9ms) DELETE FROM "headers";
644
+ SQL (77.0ms) DELETE FROM "questions";
645
+ SQL (0.8ms)  SELECT name
646
+ FROM sqlite_master
647
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
648
+ 
649
+ SQL (0.3ms) SELECT name
650
+ FROM sqlite_master
651
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
652
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
653
+ Migrating to SunriseCreateUsers (20110801124809)
654
+ Migrating to SunriseCreateRoles (20110801124909)
655
+ Migrating to SunriseCreateStructures (20110801125009)
656
+ Migrating to SunriseCreatePages (20110801125109)
657
+ Migrating to SunriseCreateAssets (20110801125209)
658
+ Migrating to SunriseCreateHeaders (20110801125309)
659
+ Migrating to SunriseCreateQuestions (20110801161138)
660
+ SQL (0.3ms) SELECT name
661
+ FROM sqlite_master
662
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
663
+ SQL (123.4ms) DELETE FROM "users";
664
+ SQL (88.1ms) DELETE FROM "roles";
665
+ SQL (110.4ms) DELETE FROM "structures";
666
+ SQL (110.2ms) DELETE FROM "pages";
667
+ SQL (110.3ms) DELETE FROM "assets";
668
+ SQL (99.0ms) DELETE FROM "headers";
669
+ SQL (99.2ms) DELETE FROM "questions";
670
+ SQL (0.4ms) SELECT name
671
+ FROM sqlite_master
672
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
673
+ SQL (107.4ms) DELETE FROM "users";
674
+ SQL (88.1ms) DELETE FROM "roles";
675
+ SQL (99.3ms) DELETE FROM "structures";
676
+ SQL (99.2ms) DELETE FROM "pages";
677
+ SQL (99.2ms) DELETE FROM "assets";
678
+ SQL (99.3ms) DELETE FROM "headers";
679
+ SQL (127.3ms) DELETE FROM "questions";
680
+ SQL (0.3ms) SELECT name
681
+ FROM sqlite_master
682
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
683
+ SQL (95.9ms) DELETE FROM "users";
684
+ SQL (121.2ms) DELETE FROM "roles";
685
+ SQL (88.4ms) DELETE FROM "structures";
686
+ SQL (88.0ms) DELETE FROM "pages";
687
+ SQL (99.2ms) DELETE FROM "assets";
688
+ SQL (110.3ms) DELETE FROM "headers";
689
+ SQL (99.1ms) DELETE FROM "questions";
690
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'questions') LIMIT 1
691
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
692
+ AREL (0.2ms) INSERT INTO "structures" ("is_visible", "depth", "slug", "position", "updated_at", "parent_id", "redirect_url", "title", "created_at", "rgt", "lft", "kind") VALUES ('t', 0, 'questions', 0, '2011-08-01 14:06:06.577330', NULL, NULL, 'questions', '2011-08-01 14:06:06.577330', 2, 1, 0)
693
+ AREL (0.3ms) INSERT INTO "questions" ("created_at", "title", "is_visible", "updated_at", "content", "structure_id", "sort_order") VALUES ('2011-08-01 14:06:06.685381', 'Test', 't', '2011-08-01 14:06:06.685381', 'Test', 6, 0)
694
+ SQL (0.3ms) SELECT name
695
+ FROM sqlite_master
696
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
697
+ SQL (159.7ms) DELETE FROM "users";
698
+ SQL (143.2ms) DELETE FROM "roles";
699
+ SQL (77.3ms) DELETE FROM "structures";
700
+ SQL (121.2ms) DELETE FROM "pages";
701
+ SQL (77.2ms) DELETE FROM "assets";
702
+ SQL (77.0ms) DELETE FROM "headers";
703
+ SQL (94.1ms) DELETE FROM "questions";
704
+ SQL (0.3ms) SELECT name
705
+ FROM sqlite_master
706
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
707
+ SQL (168.8ms) DELETE FROM "users";
708
+ SQL (77.1ms) DELETE FROM "roles";
709
+ SQL (88.4ms) DELETE FROM "structures";
710
+ SQL (88.1ms) DELETE FROM "pages";
711
+ SQL (77.2ms) DELETE FROM "assets";
712
+ SQL (110.2ms) DELETE FROM "headers";
713
+ SQL (121.2ms) DELETE FROM "questions";
714
+ SQL (0.7ms)  SELECT name
715
+ FROM sqlite_master
716
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
717
+ 
718
+ SQL (0.3ms) SELECT name
719
+ FROM sqlite_master
720
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
721
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
722
+ Migrating to SunriseCreateUsers (20110801124809)
723
+ Migrating to SunriseCreateRoles (20110801124909)
724
+ Migrating to SunriseCreateStructures (20110801125009)
725
+ Migrating to SunriseCreatePages (20110801125109)
726
+ Migrating to SunriseCreateAssets (20110801125209)
727
+ Migrating to SunriseCreateHeaders (20110801125309)
728
+ Migrating to SunriseCreateQuestions (20110801161138)
729
+ SQL (0.3ms) SELECT name
730
+ FROM sqlite_master
731
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
732
+ SQL (201.6ms) DELETE FROM "users";
733
+ SQL (99.0ms) DELETE FROM "roles";
734
+ SQL (99.4ms) DELETE FROM "structures";
735
+ SQL (110.1ms) DELETE FROM "pages";
736
+ SQL (99.3ms) DELETE FROM "assets";
737
+ SQL (110.2ms) DELETE FROM "headers";
738
+ SQL (99.1ms) DELETE FROM "questions";
739
+ SQL (0.8ms)  SELECT name
740
+ FROM sqlite_master
741
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
742
+ 
743
+ SQL (0.3ms) SELECT name
744
+ FROM sqlite_master
745
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
746
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
747
+ Migrating to SunriseCreateUsers (20110801124809)
748
+ Migrating to SunriseCreateRoles (20110801124909)
749
+ Migrating to SunriseCreateStructures (20110801125009)
750
+ Migrating to SunriseCreatePages (20110801125109)
751
+ Migrating to SunriseCreateAssets (20110801125209)
752
+ Migrating to SunriseCreateHeaders (20110801125309)
753
+ Migrating to SunriseCreateQuestions (20110801161138)
754
+ SQL (0.3ms) SELECT name
755
+ FROM sqlite_master
756
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
757
+ SQL (130.9ms) DELETE FROM "users";
758
+ SQL (99.1ms) DELETE FROM "roles";
759
+ SQL (121.4ms) DELETE FROM "structures";
760
+ SQL (132.2ms) DELETE FROM "pages";
761
+ SQL (121.3ms) DELETE FROM "assets";
762
+ SQL (121.1ms) DELETE FROM "headers";
763
+ SQL (121.2ms) DELETE FROM "questions";
764
+ SQL (0.8ms)  SELECT name
765
+ FROM sqlite_master
766
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
767
+ 
768
+ SQL (0.3ms) SELECT name
769
+ FROM sqlite_master
770
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
771
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
772
+ Migrating to SunriseCreateUsers (20110801124809)
773
+ Migrating to SunriseCreateRoles (20110801124909)
774
+ Migrating to SunriseCreateStructures (20110801125009)
775
+ Migrating to SunriseCreatePages (20110801125109)
776
+ Migrating to SunriseCreateAssets (20110801125209)
777
+ Migrating to SunriseCreateHeaders (20110801125309)
778
+ Migrating to SunriseCreateQuestions (20110801161138)
779
+ SQL (0.3ms) SELECT name
780
+ FROM sqlite_master
781
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
782
+ SQL (188.6ms) DELETE FROM "users";
783
+ SQL (66.1ms) DELETE FROM "roles";
784
+ SQL (143.4ms) DELETE FROM "structures";
785
+ SQL (110.2ms) DELETE FROM "pages";
786
+ SQL (143.4ms) DELETE FROM "assets";
787
+ SQL (110.2ms) DELETE FROM "headers";
788
+ SQL (99.1ms) DELETE FROM "questions";
789
+ SQL (0.8ms)  SELECT name
790
+ FROM sqlite_master
791
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
792
+ 
793
+ SQL (0.3ms) SELECT name
794
+ FROM sqlite_master
795
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
796
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
797
+ Migrating to SunriseCreateUsers (20110801124809)
798
+ Migrating to SunriseCreateRoles (20110801124909)
799
+ Migrating to SunriseCreateStructures (20110801125009)
800
+ Migrating to SunriseCreatePages (20110801125109)
801
+ Migrating to SunriseCreateAssets (20110801125209)
802
+ Migrating to SunriseCreateHeaders (20110801125309)
803
+ Migrating to SunriseCreateQuestions (20110801161138)
804
+ SQL (0.8ms)  SELECT name
805
+ FROM sqlite_master
806
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
807
+ 
808
+ SQL (0.3ms) SELECT name
809
+ FROM sqlite_master
810
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
811
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
812
+ Migrating to SunriseCreateUsers (20110801124809)
813
+ Migrating to SunriseCreateRoles (20110801124909)
814
+ Migrating to SunriseCreateStructures (20110801125009)
815
+ Migrating to SunriseCreatePages (20110801125109)
816
+ Migrating to SunriseCreateAssets (20110801125209)
817
+ Migrating to SunriseCreateHeaders (20110801125309)
818
+ Migrating to SunriseCreateQuestions (20110801161138)
819
+ SQL (0.8ms)  SELECT name
820
+ FROM sqlite_master
821
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
822
+ 
823
+ SQL (0.3ms) SELECT name
824
+ FROM sqlite_master
825
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
826
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
827
+ Migrating to SunriseCreateUsers (20110801124809)
828
+ Migrating to SunriseCreateRoles (20110801124909)
829
+ Migrating to SunriseCreateStructures (20110801125009)
830
+ Migrating to SunriseCreatePages (20110801125109)
831
+ Migrating to SunriseCreateAssets (20110801125209)
832
+ Migrating to SunriseCreateHeaders (20110801125309)
833
+ Migrating to SunriseCreateQuestions (20110801161138)
834
+ SQL (0.2ms) SELECT name
835
+ FROM sqlite_master
836
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
837
+ SQL (128.5ms) DELETE FROM "users";
838
+ SQL (99.1ms) DELETE FROM "roles";
839
+ SQL (121.4ms) DELETE FROM "structures";
840
+ SQL (121.1ms) DELETE FROM "pages";
841
+ SQL (88.3ms) DELETE FROM "assets";
842
+ SQL (110.1ms) DELETE FROM "headers";
843
+ SQL (94.1ms) DELETE FROM "questions";
844
+ SQL (0.7ms)  SELECT name
845
+ FROM sqlite_master
846
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
847
+ 
848
+ SQL (0.3ms) SELECT name
849
+ FROM sqlite_master
850
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
851
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
852
+ Migrating to SunriseCreateUsers (20110801124809)
853
+ Migrating to SunriseCreateRoles (20110801124909)
854
+ Migrating to SunriseCreateStructures (20110801125009)
855
+ Migrating to SunriseCreatePages (20110801125109)
856
+ Migrating to SunriseCreateAssets (20110801125209)
857
+ Migrating to SunriseCreateHeaders (20110801125309)
858
+ Migrating to SunriseCreateQuestions (20110801161138)
859
+ SQL (0.1ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
860
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
861
+ AREL (0.3ms) INSERT INTO "structures" ("rgt", "parent_id", "depth", "lft", "redirect_url", "position", "slug", "is_visible", "kind", "updated_at", "title", "created_at") VALUES (2, NULL, 0, 1, NULL, 2, 'slug1', 't', 1, '2011-08-01 14:15:15.382746', 'Structure', '2011-08-01 14:15:15.382746')
862
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "sort_order", "content", "updated_at", "title", "is_visible", "created_at") VALUES (7, 0, 'Test', '2011-08-01 14:15:15.534408', 'Test', 't', '2011-08-01 14:15:15.534408')
863
+ SQL (0.3ms) SELECT name
864
+ FROM sqlite_master
865
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
866
+ SQL (95.6ms) DELETE FROM "users";
867
+ SQL (66.0ms) DELETE FROM "roles";
868
+ SQL (88.3ms) DELETE FROM "structures";
869
+ SQL (65.9ms) DELETE FROM "pages";
870
+ SQL (55.2ms) DELETE FROM "assets";
871
+ SQL (110.2ms) DELETE FROM "headers";
872
+ SQL (154.3ms) DELETE FROM "questions";
873
+ SQL (0.8ms)  SELECT name
874
+ FROM sqlite_master
875
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
876
+ 
877
+ SQL (0.3ms) SELECT name
878
+ FROM sqlite_master
879
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
880
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
881
+ Migrating to SunriseCreateUsers (20110801124809)
882
+ Migrating to SunriseCreateRoles (20110801124909)
883
+ Migrating to SunriseCreateStructures (20110801125009)
884
+ Migrating to SunriseCreatePages (20110801125109)
885
+ Migrating to SunriseCreateAssets (20110801125209)
886
+ Migrating to SunriseCreateHeaders (20110801125309)
887
+ Migrating to SunriseCreateQuestions (20110801161138)
888
+ SQL (0.3ms) SELECT name
889
+ FROM sqlite_master
890
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
891
+ SQL (166.0ms) DELETE FROM "users";
892
+ SQL (99.1ms) DELETE FROM "roles";
893
+ SQL (88.2ms) DELETE FROM "structures";
894
+ SQL (55.0ms) DELETE FROM "pages";
895
+ SQL (88.3ms) DELETE FROM "assets";
896
+ SQL (99.1ms) DELETE FROM "headers";
897
+ SQL (72.0ms) DELETE FROM "questions";
898
+ SQL (0.4ms) SELECT name
899
+ FROM sqlite_master
900
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
901
+ SQL (90.3ms) DELETE FROM "users";
902
+ SQL (88.0ms) DELETE FROM "roles";
903
+ SQL (66.2ms) DELETE FROM "structures";
904
+ SQL (88.0ms) DELETE FROM "pages";
905
+ SQL (88.3ms) DELETE FROM "assets";
906
+ SQL (66.0ms) DELETE FROM "headers";
907
+ SQL (72.0ms) DELETE FROM "questions";
908
+ SQL (0.3ms) SELECT name
909
+ FROM sqlite_master
910
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
911
+ SQL (88.0ms) DELETE FROM "users";
912
+ SQL (110.1ms) DELETE FROM "roles";
913
+ SQL (55.2ms) DELETE FROM "structures";
914
+ SQL (76.9ms) DELETE FROM "pages";
915
+ SQL (77.2ms) DELETE FROM "assets";
916
+ SQL (99.1ms) DELETE FROM "headers";
917
+ SQL (60.8ms) DELETE FROM "questions";
918
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
919
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
920
+ AREL (0.3ms) INSERT INTO "structures" ("title", "rgt", "lft", "slug", "position", "updated_at", "parent_id", "kind", "created_at", "depth", "redirect_url", "is_visible") VALUES ('Structure', 2, 1, 'slug1', 2, '2011-08-01 14:15:26.578785', NULL, 1, '2011-08-01 14:15:26.578785', 0, NULL, 't')
921
+ AREL (0.3ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:26.769007', 't', 0, '2011-08-01 14:15:26.769007', 'Test', 8)
922
+ SQL (0.3ms) SELECT name
923
+ FROM sqlite_master
924
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
925
+ SQL (70.4ms) DELETE FROM "users";
926
+ SQL (88.1ms) DELETE FROM "roles";
927
+ SQL (88.2ms) DELETE FROM "structures";
928
+ SQL (88.1ms) DELETE FROM "pages";
929
+ SQL (66.1ms) DELETE FROM "assets";
930
+ SQL (66.0ms) DELETE FROM "headers";
931
+ SQL (71.9ms) DELETE FROM "questions";
932
+ SQL (0.1ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug2') LIMIT 1
933
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
934
+ AREL (0.2ms) INSERT INTO "structures" ("title", "rgt", "lft", "slug", "position", "updated_at", "parent_id", "kind", "created_at", "depth", "redirect_url", "is_visible") VALUES ('Structure', 2, 1, 'slug2', 2, '2011-08-01 14:15:27.451713', NULL, 1, '2011-08-01 14:15:27.451713', 0, NULL, 't')
935
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
936
+ AREL (0.2ms) INSERT INTO "users" ("current_sign_in_at", "locked_at", "sign_in_count", "email", "last_sign_in_at", "encrypted_password", "confirmed_at", "reset_password_sent_at", "remember_created_at", "current_sign_in_ip", "updated_at", "name", "reset_password_token", "failed_attempts", "confirmation_token", "last_sign_in_ip", "password_salt", "confirmation_sent_at", "created_at") VALUES (NULL, NULL, 0, 'testing1@example.com', NULL, 'e3c71ec39b0953678c7d8469018e1ad521b89bb98385d4b2f93d864f7d6bf4a56c5ca2992716adab6993b2a90c6ae0ddac83ee00f10b703c57f64c9fc6dc252d', '2011-08-01 14:15:27.541467', NULL, NULL, NULL, '2011-08-01 14:15:27.544004', 'Admin', NULL, 0, NULL, NULL, 'SnSBY3x5Eg1QMNEgkz1H', NULL, '2011-08-01 14:15:27.544004')
937
+ AREL (0.1ms) INSERT INTO "roles" ("user_id", "updated_at", "role_type", "created_at") VALUES (1, '2011-08-01 14:15:27.546217', 4, '2011-08-01 14:15:27.546217')
938
+ Processing by Manage::QuestionsController#new as HTML
939
+ Parameters: {"structure_id"=>9}
940
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
941
+ SQL (0.2ms)  SELECT name
942
+ FROM sqlite_master
943
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
944
+ 
945
+ Completed 500 Internal Server Error in 5ms
946
+ SQL (0.2ms) SELECT name
947
+ FROM sqlite_master
948
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
949
+ SQL (0.1ms) SELECT COUNT(*) FROM "questions"
950
+ Processing by Manage::QuestionsController#create as HTML
951
+ Parameters: {"structure_id"=>9, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
952
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
953
+ SQL (0.3ms)  SELECT name
954
+ FROM sqlite_master
955
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
956
+ 
957
+ Completed 500 Internal Server Error in 5ms
958
+ SQL (0.2ms) SELECT name
959
+ FROM sqlite_master
960
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
961
+ AREL (0.4ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:27.702950', 't', 1, '2011-08-01 14:15:27.702950', 'Test', 9)
962
+ Processing by Manage::QuestionsController#index as HTML
963
+ Parameters: {"structure_id"=>9}
964
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
965
+ SQL (0.4ms)  SELECT name
966
+ FROM sqlite_master
967
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
968
+ 
969
+ Completed 500 Internal Server Error in 11ms
970
+ SQL (0.3ms) SELECT name
971
+ FROM sqlite_master
972
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
973
+ AREL (0.3ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:27.895439', 't', 1, '2011-08-01 14:15:27.895439', 'Test', 9)
974
+ Processing by Manage::QuestionsController#edit as HTML
975
+ Parameters: {"structure_id"=>9, "id"=>10}
976
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
977
+ SQL (0.2ms)  SELECT name
978
+ FROM sqlite_master
979
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
980
+ 
981
+ Completed 500 Internal Server Error in 7ms
982
+ SQL (0.2ms) SELECT name
983
+ FROM sqlite_master
984
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
985
+ AREL (0.2ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:28.009989', 't', 1, '2011-08-01 14:15:28.009989', 'Test', 9)
986
+ Processing by Manage::QuestionsController#update as HTML
987
+ Parameters: {"structure_id"=>9, "id"=>11, "question"=>{"title"=>"Update"}}
988
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
989
+ SQL (0.5ms)  SELECT name
990
+ FROM sqlite_master
991
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
992
+ 
993
+ Completed 500 Internal Server Error in 8ms
994
+ SQL (0.3ms) SELECT name
995
+ FROM sqlite_master
996
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
997
+ AREL (0.2ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:28.114075', 't', 1, '2011-08-01 14:15:28.114075', 'Test', 9)
998
+ SQL (0.2ms) SELECT COUNT(*) FROM "structures"
999
+ Processing by Manage::QuestionsController#destroy as HTML
1000
+ Parameters: {"structure_id"=>9, "id"=>12}
1001
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1002
+ SQL (0.4ms) SELECT name
1003
+ FROM sqlite_master
1004
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1005
+ Completed 500 Internal Server Error in 9ms
1006
+ SQL (0.3ms)  SELECT name
1007
+ FROM sqlite_master
1008
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1009
+ 
1010
+ AREL (0.2ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:28.247327', 't', 1, '2011-08-01 14:15:28.247327', 'Test', 9)
1011
+ Processing by Manage::QuestionsController#edit as HTML
1012
+ Parameters: {"structure_id"=>9, "id"=>13}
1013
+ Completed in 4ms
1014
+ AREL (0.2ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:28.335741', 't', 1, '2011-08-01 14:15:28.335741', 'Test', 9)
1015
+ Processing by Manage::QuestionsController#update as HTML
1016
+ Parameters: {"structure_id"=>9, "id"=>14}
1017
+ Completed in 1ms
1018
+ AREL (0.5ms) INSERT INTO "questions" ("title", "created_at", "is_visible", "sort_order", "updated_at", "content", "structure_id") VALUES ('Test', '2011-08-01 14:15:28.422621', 't', 1, '2011-08-01 14:15:28.422621', 'Test', 9)
1019
+ Processing by Manage::QuestionsController#destroy as HTML
1020
+ Parameters: {"structure_id"=>9, "id"=>15}
1021
+ Completed in 1ms
1022
+ SQL (0.4ms)  SELECT name
1023
+ FROM sqlite_master
1024
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1025
+ 
1026
+ SQL (85.6ms) DELETE FROM "users";
1027
+ SQL (88.0ms) DELETE FROM "roles";
1028
+ SQL (88.2ms) DELETE FROM "structures";
1029
+ SQL (66.1ms) DELETE FROM "pages";
1030
+ SQL (88.3ms) DELETE FROM "assets";
1031
+ SQL (77.1ms) DELETE FROM "headers";
1032
+ SQL (94.1ms) DELETE FROM "questions";
1033
+ SQL (0.8ms)  SELECT name
1034
+ FROM sqlite_master
1035
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1036
+ 
1037
+ SQL (0.3ms) SELECT name
1038
+ FROM sqlite_master
1039
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1040
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1041
+ Migrating to SunriseCreateUsers (20110801124809)
1042
+ Migrating to SunriseCreateRoles (20110801124909)
1043
+ Migrating to SunriseCreateStructures (20110801125009)
1044
+ Migrating to SunriseCreatePages (20110801125109)
1045
+ Migrating to SunriseCreateAssets (20110801125209)
1046
+ Migrating to SunriseCreateHeaders (20110801125309)
1047
+ Migrating to SunriseCreateQuestions (20110801161138)
1048
+ SQL (0.1ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
1049
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1050
+ AREL (0.4ms) INSERT INTO "structures" ("created_at", "kind", "position", "lft", "redirect_url", "rgt", "depth", "slug", "is_visible", "updated_at", "title", "parent_id") VALUES ('2011-08-01 14:16:35.691468', 1, 2, 1, NULL, 2, 0, 'slug1', 't', '2011-08-01 14:16:35.691468', 'Structure', NULL)
1051
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1052
+ AREL (0.2ms) INSERT INTO "users" ("last_sign_in_ip", "sign_in_count", "encrypted_password", "confirmation_token", "remember_created_at", "locked_at", "last_sign_in_at", "updated_at", "failed_attempts", "name", "email", "confirmation_sent_at", "current_sign_in_at", "reset_password_token", "current_sign_in_ip", "password_salt", "confirmed_at", "reset_password_sent_at", "created_at") VALUES (NULL, 0, '28963fa8b0b82a9eb000b237fe78935a4f233501345abf705a0626bb0df327b049753b6200077306df0d4c8333e9873bba48e73afef4e8ec4d4afd8bdc64b7bc', NULL, NULL, NULL, NULL, '2011-08-01 14:16:35.850292', 0, 'Admin', 'testing1@example.com', NULL, NULL, NULL, NULL, 'T6O5FPyEL0sBaeKxXyws', '2011-08-01 14:16:35.847804', NULL, '2011-08-01 14:16:35.850292')
1053
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "created_at", "role_type", "user_id") VALUES ('2011-08-01 14:16:35.852438', '2011-08-01 14:16:35.852438', 4, 2)
1054
+ Processing by Manage::QuestionsController#new as HTML
1055
+ Parameters: {"structure_id"=>10}
1056
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1057
+ Completed 500 Internal Server Error in 5ms
1058
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions"
1059
+ Processing by Manage::QuestionsController#create as HTML
1060
+ Parameters: {"structure_id"=>10, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
1061
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1062
+ Completed 500 Internal Server Error in 4ms
1063
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:35.958396', '2011-08-01 14:16:35.958396', 't', 10, 'Test', 'Test')
1064
+ Processing by Manage::QuestionsController#index as HTML
1065
+ Parameters: {"structure_id"=>10}
1066
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1067
+ Completed 500 Internal Server Error in 6ms
1068
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:36.050222', '2011-08-01 14:16:36.050222', 't', 10, 'Test', 'Test')
1069
+ Processing by Manage::QuestionsController#edit as HTML
1070
+ Parameters: {"structure_id"=>10, "id"=>17}
1071
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1072
+ Completed 500 Internal Server Error in 5ms
1073
+ AREL (0.3ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:36.243981', '2011-08-01 14:16:36.243981', 't', 10, 'Test', 'Test')
1074
+ Processing by Manage::QuestionsController#update as HTML
1075
+ Parameters: {"structure_id"=>10, "id"=>18, "question"=>{"title"=>"Update"}}
1076
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1077
+ Completed 500 Internal Server Error in 6ms
1078
+ AREL (0.3ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:36.336722', '2011-08-01 14:16:36.336722', 't', 10, 'Test', 'Test')
1079
+ SQL (0.2ms) SELECT COUNT(*) FROM "structures"
1080
+ Processing by Manage::QuestionsController#destroy as HTML
1081
+ Parameters: {"structure_id"=>10, "id"=>19}
1082
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1083
+ Completed 500 Internal Server Error in 9ms
1084
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:36.445494', '2011-08-01 14:16:36.445494', 't', 10, 'Test', 'Test')
1085
+ Processing by Manage::QuestionsController#edit as HTML
1086
+ Parameters: {"structure_id"=>10, "id"=>20}
1087
+ Completed in 6ms
1088
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:36.562107', '2011-08-01 14:16:36.562107', 't', 10, 'Test', 'Test')
1089
+ Processing by Manage::QuestionsController#update as HTML
1090
+ Parameters: {"structure_id"=>10, "id"=>21}
1091
+ Completed in 0ms
1092
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "created_at", "is_visible", "structure_id", "content", "title") VALUES (1, '2011-08-01 14:16:36.646754', '2011-08-01 14:16:36.646754', 't', 10, 'Test', 'Test')
1093
+ Processing by Manage::QuestionsController#destroy as HTML
1094
+ Parameters: {"structure_id"=>10, "id"=>22}
1095
+ Completed in 1ms
1096
+ SQL (0.4ms)  SELECT name
1097
+ FROM sqlite_master
1098
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1099
+ 
1100
+ SQL (119.8ms) DELETE FROM "users";
1101
+ SQL (88.1ms) DELETE FROM "roles";
1102
+ SQL (99.3ms) DELETE FROM "structures";
1103
+ SQL (77.0ms) DELETE FROM "pages";
1104
+ SQL (66.2ms) DELETE FROM "assets";
1105
+ SQL (77.0ms) DELETE FROM "headers";
1106
+ SQL (66.0ms) DELETE FROM "questions";
1107
+ SQL (0.8ms)  SELECT name
1108
+ FROM sqlite_master
1109
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1110
+ 
1111
+ SQL (0.3ms) SELECT name
1112
+ FROM sqlite_master
1113
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1114
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1115
+ Migrating to SunriseCreateUsers (20110801124809)
1116
+ Migrating to SunriseCreateRoles (20110801124909)
1117
+ Migrating to SunriseCreateStructures (20110801125009)
1118
+ Migrating to SunriseCreatePages (20110801125109)
1119
+ Migrating to SunriseCreateAssets (20110801125209)
1120
+ Migrating to SunriseCreateHeaders (20110801125309)
1121
+ Migrating to SunriseCreateQuestions (20110801161138)
1122
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
1123
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1124
+ AREL (0.4ms) INSERT INTO "structures" ("redirect_url", "depth", "updated_at", "title", "created_at", "slug", "is_visible", "rgt", "kind", "position", "parent_id", "lft") VALUES (NULL, 0, '2011-08-01 14:17:25.410709', 'Structure', '2011-08-01 14:17:25.410709', 'slug1', 't', 2, 1, 2, NULL, 1)
1125
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1126
+ AREL (0.2ms) INSERT INTO "users" ("failed_attempts", "sign_in_count", "name", "current_sign_in_at", "confirmation_token", "reset_password_token", "confirmed_at", "confirmation_sent_at", "remember_created_at", "current_sign_in_ip", "last_sign_in_ip", "email", "encrypted_password", "reset_password_sent_at", "created_at", "locked_at", "last_sign_in_at", "updated_at", "password_salt") VALUES (0, 0, 'Admin', NULL, NULL, NULL, '2011-08-01 14:17:25.622204', NULL, NULL, NULL, NULL, 'testing1@example.com', '26d566c85530e521f59422118e3542e5bbbabb49e35233e00a7adef517aa282fe7123b938e9a6237d6e2a07732c8d2374eb880cc7184c04c158304527f7cf81f', NULL, '2011-08-01 14:17:25.624822', NULL, NULL, '2011-08-01 14:17:25.624822', 'Io4SdQhmfxQKhPslBpF0')
1127
+ AREL (0.1ms) INSERT INTO "roles" ("role_type", "created_at", "updated_at", "user_id") VALUES (4, '2011-08-01 14:17:25.626943', '2011-08-01 14:17:25.626943', 3)
1128
+ Processing by Manage::QuestionsController#new as HTML
1129
+ Parameters: {"structure_id"=>11}
1130
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
1131
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 11 LIMIT 1
1132
+ Completed 500 Internal Server Error in 6ms
1133
+ SQL (0.1ms) SELECT COUNT(*) FROM "questions"
1134
+ Processing by Manage::QuestionsController#create as HTML
1135
+ Parameters: {"structure_id"=>11, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
1136
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
1137
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 11 LIMIT 1
1138
+ Completed 500 Internal Server Error in 5ms
1139
+ AREL (0.4ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:25.769004', 't', '2011-08-01 14:17:25.769004', 'Test', 11)
1140
+ Processing by Manage::QuestionsController#index as HTML
1141
+ Parameters: {"structure_id"=>11}
1142
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
1143
+ Structure Load (0.4ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 11 LIMIT 1
1144
+ Completed 500 Internal Server Error in 7ms
1145
+ AREL (0.2ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:25.888327', 't', '2011-08-01 14:17:25.888327', 'Test', 11)
1146
+ Processing by Manage::QuestionsController#edit as HTML
1147
+ Parameters: {"structure_id"=>11, "id"=>24}
1148
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
1149
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 11 LIMIT 1
1150
+ Completed 500 Internal Server Error in 6ms
1151
+ AREL (0.2ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:26.077085', 't', '2011-08-01 14:17:26.077085', 'Test', 11)
1152
+ Processing by Manage::QuestionsController#update as HTML
1153
+ Parameters: {"structure_id"=>11, "id"=>25, "question"=>{"title"=>"Update"}}
1154
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
1155
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 11 LIMIT 1
1156
+ Completed 500 Internal Server Error in 6ms
1157
+ AREL (0.2ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:26.184567', 't', '2011-08-01 14:17:26.184567', 'Test', 11)
1158
+ SQL (0.4ms) SELECT COUNT(*) FROM "structures"
1159
+ Processing by Manage::QuestionsController#destroy as HTML
1160
+ Parameters: {"structure_id"=>11, "id"=>26}
1161
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
1162
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 11 LIMIT 1
1163
+ Completed 500 Internal Server Error in 11ms
1164
+ AREL (0.2ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:26.325187', 't', '2011-08-01 14:17:26.325187', 'Test', 11)
1165
+ Processing by Manage::QuestionsController#edit as HTML
1166
+ Parameters: {"structure_id"=>11, "id"=>27}
1167
+ Completed in 4ms
1168
+ AREL (0.2ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:26.432951', 't', '2011-08-01 14:17:26.432951', 'Test', 11)
1169
+ Processing by Manage::QuestionsController#update as HTML
1170
+ Parameters: {"structure_id"=>11, "id"=>28}
1171
+ Completed in 1ms
1172
+ AREL (0.2ms) INSERT INTO "questions" ("content", "sort_order", "updated_at", "is_visible", "created_at", "title", "structure_id") VALUES ('Test', 1, '2011-08-01 14:17:26.523908', 't', '2011-08-01 14:17:26.523908', 'Test', 11)
1173
+ Processing by Manage::QuestionsController#destroy as HTML
1174
+ Parameters: {"structure_id"=>11, "id"=>29}
1175
+ Completed in 1ms
1176
+ SQL (0.6ms)  SELECT name
1177
+ FROM sqlite_master
1178
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1179
+ 
1180
+ SQL (91.6ms) DELETE FROM "users";
1181
+ SQL (88.0ms) DELETE FROM "roles";
1182
+ SQL (77.2ms) DELETE FROM "structures";
1183
+ SQL (143.4ms) DELETE FROM "pages";
1184
+ SQL (110.3ms) DELETE FROM "assets";
1185
+ SQL (66.0ms) DELETE FROM "headers";
1186
+ SQL (66.0ms) DELETE FROM "questions";
1187
+ SQL (0.7ms)  SELECT name
1188
+ FROM sqlite_master
1189
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1190
+ 
1191
+ SQL (0.3ms) SELECT name
1192
+ FROM sqlite_master
1193
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1194
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1195
+ Migrating to SunriseCreateUsers (20110801124809)
1196
+ Migrating to SunriseCreateRoles (20110801124909)
1197
+ Migrating to SunriseCreateStructures (20110801125009)
1198
+ Migrating to SunriseCreatePages (20110801125109)
1199
+ Migrating to SunriseCreateAssets (20110801125209)
1200
+ Migrating to SunriseCreateHeaders (20110801125309)
1201
+ Migrating to SunriseCreateQuestions (20110801161138)
1202
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
1203
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1204
+ AREL (0.3ms) INSERT INTO "structures" ("created_at", "depth", "rgt", "lft", "kind", "parent_id", "title", "slug", "is_visible", "redirect_url", "position", "updated_at") VALUES ('2011-08-01 14:19:19.841921', 0, 2, 1, 1, NULL, 'Structure', 'slug1', 't', NULL, 2, '2011-08-01 14:19:19.841921')
1205
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1206
+ AREL (0.2ms) INSERT INTO "users" ("reset_password_token", "current_sign_in_at", "last_sign_in_at", "created_at", "email", "remember_created_at", "password_salt", "last_sign_in_ip", "confirmation_sent_at", "sign_in_count", "failed_attempts", "locked_at", "current_sign_in_ip", "encrypted_password", "name", "confirmed_at", "reset_password_sent_at", "confirmation_token", "updated_at") VALUES (NULL, NULL, NULL, '2011-08-01 14:19:20.005357', 'testing1@example.com', NULL, 'lyEolM6pSlcTOfN3kh4M', NULL, NULL, 0, 0, NULL, NULL, 'd5eeb2df44d8f598075688baf1c2287de72780dc0a12b785dfbcc3de4a23f13c6b1978fdd66cea46cd81a478a238400e25ffce1168b683312e108ba6406547a0', 'Admin', '2011-08-01 14:19:20.002905', NULL, NULL, '2011-08-01 14:19:20.005357')
1207
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "role_type", "user_id", "created_at") VALUES ('2011-08-01 14:19:20.007490', 4, 4, '2011-08-01 14:19:20.007490')
1208
+ Processing by Manage::QuestionsController#new as HTML
1209
+ Parameters: {"structure_id"=>12}
1210
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
1211
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 12 LIMIT 1
1212
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1213
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1214
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (20.7ms)
1215
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 4 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1216
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (13.6ms)
1217
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.5ms)
1218
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.8ms)
1219
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/new.html.erb within layouts/manage (147.5ms)
1220
+ Completed 200 OK in 169ms (Views: 155.4ms | ActiveRecord: 3.3ms)
1221
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions"
1222
+ Processing by Manage::QuestionsController#create as HTML
1223
+ Parameters: {"structure_id"=>12, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
1224
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
1225
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 12 LIMIT 1
1226
+ WARNING: Can't mass-assign protected attributes: sort_order
1227
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1228
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1229
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 0, 't', '2011-08-01 14:19:20.322234', '2011-08-01 14:19:20.322234')
1230
+ Redirected to http://test.host/manage/structures/12/questions
1231
+ Completed 302 Found in 144ms
1232
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions"
1233
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:20.465324', '2011-08-01 14:19:20.465324')
1234
+ Processing by Manage::QuestionsController#index as HTML
1235
+ Parameters: {"structure_id"=>12}
1236
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
1237
+ Structure Load (0.5ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 12 LIMIT 1
1238
+ Role Load (0.3ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1239
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1240
+ Question Load (0.2ms) SELECT "questions".* FROM "questions" WHERE ("questions".structure_id = 12) LIMIT 25 OFFSET 0
1241
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_question.html.erb (4.1ms)
1242
+ SQL (0.1ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 12)
1243
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_model_filter.html.erb (7.2ms)
1244
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 4 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1245
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.6ms)
1246
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1247
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1248
+ Completed 200 OK in 51ms (Views: 34.5ms | ActiveRecord: 2.6ms)
1249
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:20.647762', '2011-08-01 14:19:20.647762')
1250
+ Processing by Manage::QuestionsController#edit as HTML
1251
+ Parameters: {"structure_id"=>12, "id"=>32}
1252
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
1253
+ Structure Load (0.4ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 12 LIMIT 1
1254
+ Question Load (0.3ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 32 AND ("questions".structure_id = 12) LIMIT 1
1255
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1256
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1257
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (8.5ms)
1258
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 4 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1259
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.2ms)
1260
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1261
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1262
+ Completed 200 OK in 34ms (Views: 19.7ms | ActiveRecord: 2.1ms)
1263
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:20.762383', '2011-08-01 14:19:20.762383')
1264
+ Processing by Manage::QuestionsController#update as HTML
1265
+ Parameters: {"structure_id"=>12, "id"=>33, "question"=>{"title"=>"Update"}}
1266
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
1267
+ Structure Load (0.4ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 12 LIMIT 1
1268
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 33 AND ("questions".structure_id = 12) LIMIT 1
1269
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1270
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1271
+ AREL (0.2ms) UPDATE "questions" SET "title" = 'Update', "updated_at" = '2011-08-01 14:19:20.989799' WHERE "questions"."id" = 33
1272
+ Redirected to http://test.host/manage/structures/12/questions
1273
+ Completed 302 Found in 228ms
1274
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:21.113350', '2011-08-01 14:19:21.113350')
1275
+ SQL (0.2ms) SELECT COUNT(*) FROM "structures"
1276
+ Processing by Manage::QuestionsController#destroy as HTML
1277
+ Parameters: {"structure_id"=>12, "id"=>34}
1278
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
1279
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 12 LIMIT 1
1280
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 34 AND ("questions".structure_id = 12) LIMIT 1
1281
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1282
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 4) LIMIT 1
1283
+ AREL (0.2ms) DELETE FROM "questions" WHERE "questions"."id" = 34
1284
+ Redirected to http://test.host/manage/structures/12/questions
1285
+ Completed 302 Found in 113ms
1286
+ SQL (0.2ms) SELECT COUNT(*) FROM "structures"
1287
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:21.344872', '2011-08-01 14:19:21.344872')
1288
+ Processing by Manage::QuestionsController#edit as HTML
1289
+ Parameters: {"structure_id"=>12, "id"=>35}
1290
+ Completed in 4ms
1291
+ AREL (0.2ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:21.453464', '2011-08-01 14:19:21.453464')
1292
+ Processing by Manage::QuestionsController#update as HTML
1293
+ Parameters: {"structure_id"=>12, "id"=>36}
1294
+ Completed in 1ms
1295
+ AREL (0.3ms) INSERT INTO "questions" ("structure_id", "content", "title", "sort_order", "is_visible", "created_at", "updated_at") VALUES (12, 'Test', 'Test', 1, 't', '2011-08-01 14:19:21.566965', '2011-08-01 14:19:21.566965')
1296
+ Processing by Manage::QuestionsController#destroy as HTML
1297
+ Parameters: {"structure_id"=>12, "id"=>37}
1298
+ Completed in 1ms
1299
+ SQL (0.4ms) SELECT name
1300
+ FROM sqlite_master
1301
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1302
+ SQL (80.8ms) DELETE FROM "users";
1303
+ SQL (99.2ms) DELETE FROM "roles";
1304
+ SQL (132.5ms) DELETE FROM "structures";
1305
+ SQL (77.0ms) DELETE FROM "pages";
1306
+ SQL (121.4ms) DELETE FROM "assets";
1307
+ SQL (77.1ms) DELETE FROM "headers";
1308
+ SQL (77.0ms) DELETE FROM "questions";
1309
+ SQL (0.8ms)  SELECT name
1310
+ FROM sqlite_master
1311
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1312
+ 
1313
+ SQL (0.3ms) SELECT name
1314
+ FROM sqlite_master
1315
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1316
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1317
+ Migrating to SunriseCreateUsers (20110801124809)
1318
+ Migrating to SunriseCreateRoles (20110801124909)
1319
+ Migrating to SunriseCreateStructures (20110801125009)
1320
+ Migrating to SunriseCreatePages (20110801125109)
1321
+ Migrating to SunriseCreateAssets (20110801125209)
1322
+ Migrating to SunriseCreateHeaders (20110801125309)
1323
+ Migrating to SunriseCreateQuestions (20110801161138)
1324
+ SQL (0.3ms) SELECT name
1325
+ FROM sqlite_master
1326
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1327
+ SQL (153.7ms) DELETE FROM "users";
1328
+ SQL (110.1ms) DELETE FROM "roles";
1329
+ SQL (99.3ms) DELETE FROM "structures";
1330
+ SQL (99.1ms) DELETE FROM "pages";
1331
+ SQL (110.3ms) DELETE FROM "assets";
1332
+ SQL (99.1ms) DELETE FROM "headers";
1333
+ SQL (99.2ms) DELETE FROM "questions";
1334
+ SQL (0.4ms) SELECT name
1335
+ FROM sqlite_master
1336
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1337
+ SQL (96.2ms) DELETE FROM "users";
1338
+ SQL (121.1ms) DELETE FROM "roles";
1339
+ SQL (99.3ms) DELETE FROM "structures";
1340
+ SQL (110.3ms) DELETE FROM "pages";
1341
+ SQL (99.2ms) DELETE FROM "assets";
1342
+ SQL (99.2ms) DELETE FROM "headers";
1343
+ SQL (121.2ms) DELETE FROM "questions";
1344
+ SQL (0.4ms) SELECT name
1345
+ FROM sqlite_master
1346
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1347
+ SQL (112.0ms) DELETE FROM "users";
1348
+ SQL (99.2ms) DELETE FROM "roles";
1349
+ SQL (99.1ms) DELETE FROM "structures";
1350
+ SQL (88.0ms) DELETE FROM "pages";
1351
+ SQL (110.4ms) DELETE FROM "assets";
1352
+ SQL (121.2ms) DELETE FROM "headers";
1353
+ SQL (99.1ms) DELETE FROM "questions";
1354
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
1355
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1356
+ AREL (0.2ms) INSERT INTO "structures" ("parent_id", "updated_at", "title", "position", "lft", "redirect_url", "slug", "rgt", "depth", "created_at", "is_visible", "kind") VALUES (NULL, '2011-08-01 14:20:23.516972', 'Structure', 2, 1, NULL, 'slug1', 2, 0, '2011-08-01 14:20:23.516972', 't', 1)
1357
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:23.711710', 'Test', 'Test', 't', 0, '2011-08-01 14:20:23.711710', 13)
1358
+ SQL (0.3ms) SELECT name
1359
+ FROM sqlite_master
1360
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1361
+ SQL (93.1ms) DELETE FROM "users";
1362
+ SQL (121.2ms) DELETE FROM "roles";
1363
+ SQL (110.4ms) DELETE FROM "structures";
1364
+ SQL (121.1ms) DELETE FROM "pages";
1365
+ SQL (110.3ms) DELETE FROM "assets";
1366
+ SQL (88.1ms) DELETE FROM "headers";
1367
+ SQL (83.0ms) DELETE FROM "questions";
1368
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug2') LIMIT 1
1369
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1370
+ AREL (0.3ms) INSERT INTO "structures" ("parent_id", "updated_at", "title", "position", "lft", "redirect_url", "slug", "rgt", "depth", "created_at", "is_visible", "kind") VALUES (NULL, '2011-08-01 14:20:24.596746', 'Structure', 2, 1, NULL, 'slug2', 2, 0, '2011-08-01 14:20:24.596746', 't', 1)
1371
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1372
+ AREL (0.2ms) INSERT INTO "users" ("reset_password_sent_at", "last_sign_in_at", "locked_at", "sign_in_count", "updated_at", "name", "current_sign_in_ip", "password_salt", "created_at", "reset_password_token", "last_sign_in_ip", "confirmation_token", "email", "remember_created_at", "failed_attempts", "encrypted_password", "confirmation_sent_at", "confirmed_at", "current_sign_in_at") VALUES (NULL, NULL, NULL, 0, '2011-08-01 14:20:24.699083', 'Admin', NULL, 'V6q2S0ZOp5bAarmWfQkj', '2011-08-01 14:20:24.699083', NULL, NULL, NULL, 'testing1@example.com', NULL, 0, '944a7833b7ddb15922f079c444af28ea8c7daba6e503922b3fef2acee9587ec51fdedd8f1fcfb0458c30e1da8fe37ab4ff26a189dc60e1092be4787431232c59', NULL, '2011-08-01 14:20:24.696545', NULL)
1373
+ AREL (0.2ms) INSERT INTO "roles" ("role_type", "updated_at", "user_id", "created_at") VALUES (4, '2011-08-01 14:20:24.701419', 5, '2011-08-01 14:20:24.701419')
1374
+ Processing by Manage::QuestionsController#new as HTML
1375
+ Parameters: {"structure_id"=>14}
1376
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
1377
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 14 LIMIT 1
1378
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1379
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1380
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (19.7ms)
1381
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 5 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1382
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (13.6ms)
1383
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.4ms)
1384
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
1385
+ Completed 200 OK in 63ms (Views: 52.7ms | ActiveRecord: 2979.1ms)
1386
+ SQL (0.1ms) SELECT COUNT(*) FROM "questions"
1387
+ Processing by Manage::QuestionsController#create as HTML
1388
+ Parameters: {"structure_id"=>14, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
1389
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
1390
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 14 LIMIT 1
1391
+ WARNING: Can't mass-assign protected attributes: sort_order
1392
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1393
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1394
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:24.863462', 'Test', 'Test', 't', 0, '2011-08-01 14:20:24.863462', 14)
1395
+ Redirected to http://test.host/manage/structures/14/questions
1396
+ Completed 302 Found in 104ms
1397
+ SQL (0.3ms) SELECT COUNT(*) FROM "questions"
1398
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:24.964319', 'Test', 'Test', 't', 1, '2011-08-01 14:20:24.964319', 14)
1399
+ Processing by Manage::QuestionsController#index as HTML
1400
+ Parameters: {"structure_id"=>14}
1401
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
1402
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 14 LIMIT 1
1403
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1404
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1405
+ Question Load (0.2ms) SELECT "questions".* FROM "questions" WHERE ("questions".structure_id = 14) LIMIT 25 OFFSET 0
1406
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_question.html.erb (4.0ms)
1407
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 14)
1408
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_model_filter.html.erb (6.7ms)
1409
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 5 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1410
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.8ms)
1411
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1412
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1413
+ Completed 200 OK in 140ms (Views: 127.4ms | ActiveRecord: 2.3ms)
1414
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:25.209273', 'Test', 'Test', 't', 1, '2011-08-01 14:20:25.209273', 14)
1415
+ Processing by Manage::QuestionsController#edit as HTML
1416
+ Parameters: {"structure_id"=>14, "id"=>41}
1417
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
1418
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 14 LIMIT 1
1419
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 AND ("questions".structure_id = 14) LIMIT 1
1420
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1421
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1422
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (8.6ms)
1423
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 5 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1424
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.5ms)
1425
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1426
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1427
+ Completed 200 OK in 30ms (Views: 20.1ms | ActiveRecord: 1.6ms)
1428
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:25.341570', 'Test', 'Test', 't', 1, '2011-08-01 14:20:25.341570', 14)
1429
+ Processing by Manage::QuestionsController#update as HTML
1430
+ Parameters: {"structure_id"=>14, "id"=>42, "question"=>{"title"=>"Update"}}
1431
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
1432
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 14 LIMIT 1
1433
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 42 AND ("questions".structure_id = 14) LIMIT 1
1434
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1435
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1436
+ AREL (0.2ms) UPDATE "questions" SET "updated_at" = '2011-08-01 14:20:25.462681', "title" = 'Update' WHERE "questions"."id" = 42
1437
+ Redirected to http://test.host/manage/structures/14/questions
1438
+ Completed 302 Found in 136ms
1439
+ AREL (0.3ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:25.595307', 'Test', 'Test', 't', 1, '2011-08-01 14:20:25.595307', 14)
1440
+ SQL (0.2ms) SELECT COUNT(*) FROM "structures"
1441
+ Processing by Manage::QuestionsController#destroy as HTML
1442
+ Parameters: {"structure_id"=>14, "id"=>43}
1443
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
1444
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 14 LIMIT 1
1445
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 43 AND ("questions".structure_id = 14) LIMIT 1
1446
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1447
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 5) LIMIT 1
1448
+ AREL (0.2ms) DELETE FROM "questions" WHERE "questions"."id" = 43
1449
+ Redirected to http://test.host/manage/structures/14/questions
1450
+ Completed 302 Found in 89ms
1451
+ SQL (0.2ms) SELECT COUNT(*) FROM "structures"
1452
+ Processing by Manage::QuestionsController#index as HTML
1453
+ Parameters: {"structure_id"=>14}
1454
+ Completed in 2ms
1455
+ Processing by Manage::QuestionsController#new as HTML
1456
+ Parameters: {"structure_id"=>14}
1457
+ Completed in 0ms
1458
+ Processing by Manage::QuestionsController#create as HTML
1459
+ Parameters: {"structure_id"=>14}
1460
+ Completed in 0ms
1461
+ AREL (0.2ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:25.827054', 'Test', 'Test', 't', 1, '2011-08-01 14:20:25.827054', 14)
1462
+ Processing by Manage::QuestionsController#edit as HTML
1463
+ Parameters: {"structure_id"=>14, "id"=>44}
1464
+ Completed in 1ms
1465
+ AREL (0.4ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:25.962643', 'Test', 'Test', 't', 1, '2011-08-01 14:20:25.962643', 14)
1466
+ Processing by Manage::QuestionsController#update as HTML
1467
+ Parameters: {"structure_id"=>14, "id"=>45}
1468
+ Completed in 1ms
1469
+ AREL (0.3ms) INSERT INTO "questions" ("updated_at", "title", "content", "is_visible", "sort_order", "created_at", "structure_id") VALUES ('2011-08-01 14:20:26.095180', 'Test', 'Test', 't', 1, '2011-08-01 14:20:26.095180', 14)
1470
+ Processing by Manage::QuestionsController#destroy as HTML
1471
+ Parameters: {"structure_id"=>14, "id"=>46}
1472
+ Completed in 1ms
1473
+ SQL (0.5ms) SELECT name
1474
+ FROM sqlite_master
1475
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1476
+ SQL (102.0ms) DELETE FROM "users";
1477
+ SQL (99.0ms) DELETE FROM "roles";
1478
+ SQL (88.3ms) DELETE FROM "structures";
1479
+ SQL (99.1ms) DELETE FROM "pages";
1480
+ SQL (99.3ms) DELETE FROM "assets";
1481
+ SQL (99.2ms) DELETE FROM "headers";
1482
+ SQL (99.1ms) DELETE FROM "questions";
1483
+ SQL (0.8ms)  SELECT name
1484
+ FROM sqlite_master
1485
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1486
+ 
1487
+ SQL (0.3ms) SELECT name
1488
+ FROM sqlite_master
1489
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1490
+ SQL (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1491
+ Migrating to SunriseCreateUsers (20110801124809)
1492
+ Migrating to SunriseCreateRoles (20110801124909)
1493
+ Migrating to SunriseCreateStructures (20110801125009)
1494
+ Migrating to SunriseCreatePages (20110801125109)
1495
+ Migrating to SunriseCreateAssets (20110801125209)
1496
+ Migrating to SunriseCreateHeaders (20110801125309)
1497
+ Migrating to SunriseCreateQuestions (20110801161138)
1498
+ SQL (0.3ms) SELECT name
1499
+ FROM sqlite_master
1500
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1501
+ SQL (139.5ms) DELETE FROM "users";
1502
+ SQL (110.1ms) DELETE FROM "roles";
1503
+ SQL (143.5ms) DELETE FROM "structures";
1504
+ SQL (132.2ms) DELETE FROM "pages";
1505
+ SQL (132.4ms) DELETE FROM "assets";
1506
+ SQL (132.2ms) DELETE FROM "headers";
1507
+ SQL (88.1ms) DELETE FROM "questions";
1508
+ SQL (0.4ms) SELECT name
1509
+ FROM sqlite_master
1510
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1511
+ SQL (96.4ms) DELETE FROM "users";
1512
+ SQL (88.0ms) DELETE FROM "roles";
1513
+ SQL (88.3ms) DELETE FROM "structures";
1514
+ SQL (88.1ms) DELETE FROM "pages";
1515
+ SQL (99.2ms) DELETE FROM "assets";
1516
+ SQL (99.1ms) DELETE FROM "headers";
1517
+ SQL (105.0ms) DELETE FROM "questions";
1518
+ SQL (0.3ms) SELECT name
1519
+ FROM sqlite_master
1520
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1521
+ SQL (118.0ms) DELETE FROM "users";
1522
+ SQL (110.1ms) DELETE FROM "roles";
1523
+ SQL (110.5ms) DELETE FROM "structures";
1524
+ SQL (132.2ms) DELETE FROM "pages";
1525
+ SQL (132.4ms) DELETE FROM "assets";
1526
+ SQL (132.2ms) DELETE FROM "headers";
1527
+ SQL (151.8ms) DELETE FROM "questions";
1528
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
1529
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1530
+ AREL (0.2ms) INSERT INTO "structures" ("parent_id", "created_at", "slug", "lft", "position", "depth", "redirect_url", "is_visible", "rgt", "title", "updated_at", "kind") VALUES (NULL, '2011-08-01 14:21:08.539252', 'slug1', 1, 2, 0, NULL, 't', 2, 'Structure', '2011-08-01 14:21:08.539252', 1)
1531
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:08.742844', '2011-08-01 14:21:08.742844', 15, 0)
1532
+ SQL (0.3ms) SELECT name
1533
+ FROM sqlite_master
1534
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1535
+ SQL (97.4ms) DELETE FROM "users";
1536
+ SQL (110.0ms) DELETE FROM "roles";
1537
+ SQL (88.3ms) DELETE FROM "structures";
1538
+ SQL (88.0ms) DELETE FROM "pages";
1539
+ SQL (99.3ms) DELETE FROM "assets";
1540
+ SQL (88.1ms) DELETE FROM "headers";
1541
+ SQL (94.1ms) DELETE FROM "questions";
1542
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug2') LIMIT 1
1543
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1544
+ AREL (0.3ms) INSERT INTO "structures" ("parent_id", "created_at", "slug", "lft", "position", "depth", "redirect_url", "is_visible", "rgt", "title", "updated_at", "kind") VALUES (NULL, '2011-08-01 14:21:09.555267', 'slug2', 1, 2, 0, NULL, 't', 2, 'Structure', '2011-08-01 14:21:09.555267', 1)
1545
+ SQL (0.1ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1546
+ AREL (0.2ms) INSERT INTO "users" ("password_salt", "current_sign_in_ip", "reset_password_sent_at", "created_at", "email", "remember_created_at", "sign_in_count", "confirmation_sent_at", "reset_password_token", "locked_at", "last_sign_in_ip", "name", "encrypted_password", "confirmed_at", "last_sign_in_at", "current_sign_in_at", "updated_at", "confirmation_token", "failed_attempts") VALUES ('6sgepZoKACOgozbRpKze', NULL, NULL, '2011-08-01 14:21:09.677385', 'testing1@example.com', NULL, 0, NULL, NULL, NULL, NULL, 'Admin', 'b672b9eaa3859e025e478764c5d03c52c66f3b527836a2eca1811b5b76a5f625d40f315f44457e778ee6a8e8b7074452f586c2944b65bd72a089b33ed5f94e0c', '2011-08-01 14:21:09.673890', NULL, NULL, '2011-08-01 14:21:09.677385', NULL, 0)
1547
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "role_type", "created_at", "user_id") VALUES ('2011-08-01 14:21:09.679575', 4, '2011-08-01 14:21:09.679575', 6)
1548
+ Processing by Manage::QuestionsController#new as HTML
1549
+ Parameters: {"structure_id"=>16}
1550
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
1551
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 16 LIMIT 1
1552
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1553
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1554
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (19.5ms)
1555
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 6 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1556
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (12.5ms)
1557
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.4ms)
1558
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
1559
+ Completed 200 OK in 62ms (Views: 51.0ms | ActiveRecord: 3100.0ms)
1560
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 16)
1561
+ Processing by Manage::QuestionsController#create as HTML
1562
+ Parameters: {"structure_id"=>16, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
1563
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
1564
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 16 LIMIT 1
1565
+ WARNING: Can't mass-assign protected attributes: sort_order
1566
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1567
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1568
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:09.912399', '2011-08-01 14:21:09.912399', 16, 0)
1569
+ Redirected to http://test.host/manage/structures/16/questions
1570
+ Completed 302 Found in 113ms
1571
+ SQL (0.3ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 16)
1572
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:10.023117', '2011-08-01 14:21:10.023117', 16, 1)
1573
+ Processing by Manage::QuestionsController#index as HTML
1574
+ Parameters: {"structure_id"=>16}
1575
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
1576
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 16 LIMIT 1
1577
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1578
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1579
+ Question Load (0.2ms) SELECT "questions".* FROM "questions" WHERE ("questions".structure_id = 16) LIMIT 25 OFFSET 0
1580
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_question.html.erb (4.5ms)
1581
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 16)
1582
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_model_filter.html.erb (5.6ms)
1583
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 6 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1584
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.8ms)
1585
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1586
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1587
+ Completed 200 OK in 140ms (Views: 128.8ms | ActiveRecord: 2.1ms)
1588
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:10.284396', '2011-08-01 14:21:10.284396', 16, 1)
1589
+ Processing by Manage::QuestionsController#edit as HTML
1590
+ Parameters: {"structure_id"=>16, "id"=>50}
1591
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
1592
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 16 LIMIT 1
1593
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 50 AND ("questions".structure_id = 16) LIMIT 1
1594
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1595
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1596
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (8.6ms)
1597
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 6 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1598
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (5.0ms)
1599
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1600
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
1601
+ Completed 200 OK in 30ms (Views: 21.2ms | ActiveRecord: 1.4ms)
1602
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:10.439806', '2011-08-01 14:21:10.439806', 16, 1)
1603
+ Processing by Manage::QuestionsController#update as HTML
1604
+ Parameters: {"structure_id"=>16, "id"=>51, "question"=>{"title"=>"Update"}}
1605
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
1606
+ Structure Load (0.4ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 16 LIMIT 1
1607
+ Question Load (0.2ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 AND ("questions".structure_id = 16) LIMIT 1
1608
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1609
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1610
+ AREL (0.2ms) UPDATE "questions" SET "title" = 'Update', "updated_at" = '2011-08-01 14:21:10.574087' WHERE "questions"."id" = 51
1611
+ Redirected to http://test.host/manage/structures/16/questions
1612
+ Completed 302 Found in 135ms
1613
+ AREL (0.4ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:10.703248', '2011-08-01 14:21:10.703248', 16, 1)
1614
+ SQL (0.3ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 16)
1615
+ Processing by Manage::QuestionsController#destroy as HTML
1616
+ Parameters: {"structure_id"=>16, "id"=>52}
1617
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
1618
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 16 LIMIT 1
1619
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 52 AND ("questions".structure_id = 16) LIMIT 1
1620
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1621
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 6) LIMIT 1
1622
+ AREL (0.2ms) DELETE FROM "questions" WHERE "questions"."id" = 52
1623
+ Redirected to http://test.host/manage/structures/16/questions
1624
+ Completed 302 Found in 144ms
1625
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 16)
1626
+ Processing by Manage::QuestionsController#index as HTML
1627
+ Parameters: {"structure_id"=>16}
1628
+ Completed in 2ms
1629
+ Processing by Manage::QuestionsController#new as HTML
1630
+ Parameters: {"structure_id"=>16}
1631
+ Completed in 0ms
1632
+ Processing by Manage::QuestionsController#create as HTML
1633
+ Parameters: {"structure_id"=>16}
1634
+ Completed in 0ms
1635
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:11.005050', '2011-08-01 14:21:11.005050', 16, 1)
1636
+ Processing by Manage::QuestionsController#edit as HTML
1637
+ Parameters: {"structure_id"=>16, "id"=>53}
1638
+ Completed in 0ms
1639
+ AREL (0.3ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:11.125842', '2011-08-01 14:21:11.125842', 16, 1)
1640
+ Processing by Manage::QuestionsController#update as HTML
1641
+ Parameters: {"structure_id"=>16, "id"=>54}
1642
+ Completed in 1ms
1643
+ AREL (0.2ms) INSERT INTO "questions" ("content", "is_visible", "title", "updated_at", "created_at", "structure_id", "sort_order") VALUES ('Test', 't', 'Test', '2011-08-01 14:21:11.260747', '2011-08-01 14:21:11.260747', 16, 1)
1644
+ Processing by Manage::QuestionsController#destroy as HTML
1645
+ Parameters: {"structure_id"=>16, "id"=>55}
1646
+ Completed in 1ms
1647
+ SQL (0.4ms) SELECT name
1648
+ FROM sqlite_master
1649
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1650
+ SQL (116.4ms) DELETE FROM "users";
1651
+ SQL (121.2ms) DELETE FROM "roles";
1652
+ SQL (88.3ms) DELETE FROM "structures";
1653
+ SQL (88.0ms) DELETE FROM "pages";
1654
+ SQL (88.3ms) DELETE FROM "assets";
1655
+ SQL (88.1ms) DELETE FROM "headers";
1656
+ SQL (94.0ms) DELETE FROM "questions";
1657
+ SQL (0.7ms)  SELECT name
1658
+ FROM sqlite_master
1659
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1660
+ 
1661
+ SQL (0.3ms) SELECT name
1662
+ FROM sqlite_master
1663
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1664
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
1665
+ Migrating to SunriseCreateUsers (20110801124809)
1666
+ Migrating to SunriseCreateRoles (20110801124909)
1667
+ Migrating to SunriseCreateStructures (20110801125009)
1668
+ Migrating to SunriseCreatePages (20110801125109)
1669
+ Migrating to SunriseCreateAssets (20110801125209)
1670
+ Migrating to SunriseCreateHeaders (20110801125309)
1671
+ Migrating to SunriseCreateQuestions (20110801161138)
1672
+ SQL (0.3ms) SELECT name
1673
+ FROM sqlite_master
1674
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1675
+ SQL (158.0ms) DELETE FROM "users";
1676
+ SQL (121.2ms) DELETE FROM "roles";
1677
+ SQL (110.3ms) DELETE FROM "structures";
1678
+ SQL (110.1ms) DELETE FROM "pages";
1679
+ SQL (110.3ms) DELETE FROM "assets";
1680
+ SQL (99.2ms) DELETE FROM "headers";
1681
+ SQL (105.0ms) DELETE FROM "questions";
1682
+ SQL (0.4ms) SELECT name
1683
+ FROM sqlite_master
1684
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1685
+ SQL (67.8ms) DELETE FROM "users";
1686
+ SQL (66.1ms) DELETE FROM "roles";
1687
+ SQL (99.4ms) DELETE FROM "structures";
1688
+ SQL (77.1ms) DELETE FROM "pages";
1689
+ SQL (99.2ms) DELETE FROM "assets";
1690
+ SQL (88.1ms) DELETE FROM "headers";
1691
+ SQL (94.0ms) DELETE FROM "questions";
1692
+ SQL (0.4ms) SELECT name
1693
+ FROM sqlite_master
1694
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1695
+ SQL (97.9ms) DELETE FROM "users";
1696
+ SQL (66.0ms) DELETE FROM "roles";
1697
+ SQL (88.3ms) DELETE FROM "structures";
1698
+ SQL (110.1ms) DELETE FROM "pages";
1699
+ SQL (110.3ms) DELETE FROM "assets";
1700
+ SQL (110.1ms) DELETE FROM "headers";
1701
+ SQL (72.1ms) DELETE FROM "questions";
1702
+ SQL (0.2ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug1') LIMIT 1
1703
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1704
+ AREL (0.3ms) INSERT INTO "structures" ("lft", "updated_at", "slug", "redirect_url", "created_at", "parent_id", "title", "kind", "rgt", "is_visible", "depth", "position") VALUES (1, '2011-08-01 14:37:12.166285', 'slug1', NULL, '2011-08-01 14:37:12.166285', NULL, 'Structure', 1, 2, 't', 0, 2)
1705
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (0, '2011-08-01 14:37:12.340598', 'Test', '2011-08-01 14:37:12.340598', 't', 17, 'Test')
1706
+ SQL (0.3ms) SELECT name
1707
+ FROM sqlite_master
1708
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1709
+ SQL (103.0ms) DELETE FROM "users";
1710
+ SQL (66.0ms) DELETE FROM "roles";
1711
+ SQL (66.2ms) DELETE FROM "structures";
1712
+ SQL (66.0ms) DELETE FROM "pages";
1713
+ SQL (66.1ms) DELETE FROM "assets";
1714
+ SQL (66.1ms) DELETE FROM "headers";
1715
+ SQL (72.0ms) DELETE FROM "questions";
1716
+ SQL (0.1ms) SELECT 1 FROM "structures" WHERE ("structures"."slug" = 'slug2') LIMIT 1
1717
+ SQL (0.1ms) SELECT MAX("structures"."rgt") AS max_id FROM "structures"
1718
+ AREL (0.5ms) INSERT INTO "structures" ("lft", "updated_at", "slug", "redirect_url", "created_at", "parent_id", "title", "kind", "rgt", "is_visible", "depth", "position") VALUES (1, '2011-08-01 14:37:12.986154', 'slug2', NULL, '2011-08-01 14:37:12.986154', NULL, 'Structure', 1, 2, 't', 0, 2)
1719
+ SQL (0.2ms) SELECT 1 FROM "users" WHERE ("users"."email" = 'testing1@example.com') LIMIT 1
1720
+ AREL (0.3ms) INSERT INTO "users" ("last_sign_in_at", "encrypted_password", "remember_created_at", "current_sign_in_ip", "email", "locked_at", "password_salt", "confirmation_sent_at", "failed_attempts", "current_sign_in_at", "reset_password_token", "confirmed_at", "name", "last_sign_in_ip", "updated_at", "reset_password_sent_at", "confirmation_token", "sign_in_count", "created_at") VALUES (NULL, 'd74259c2c7b9dcd5891f734c35343909457096ea525c43c9bf346de8fbe578911a2c71d2417ecc793052465c6d23e1df1308fffe4671ea45e63000ae505a8597', NULL, NULL, 'testing1@example.com', NULL, 'SND2HKKoxxxzDyAsyNWO', NULL, 0, NULL, NULL, '2011-08-01 14:37:13.102728', 'Admin', NULL, '2011-08-01 14:37:13.106760', NULL, NULL, 0, '2011-08-01 14:37:13.106760')
1721
+ AREL (0.1ms) INSERT INTO "roles" ("updated_at", "user_id", "created_at", "role_type") VALUES ('2011-08-01 14:37:13.109845', 7, '2011-08-01 14:37:13.109845', 4)
1722
+ Processing by Manage::QuestionsController#new as HTML
1723
+ Parameters: {"structure_id"=>18}
1724
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
1725
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 18 LIMIT 1
1726
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1727
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1728
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (22.4ms)
1729
+ Avatar Load (0.2ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 7 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1730
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (11.8ms)
1731
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.4ms)
1732
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.7ms)
1733
+ Completed 200 OK in 63ms (Views: 53.3ms | ActiveRecord: 2571.2ms)
1734
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 18)
1735
+ Processing by Manage::QuestionsController#create as HTML
1736
+ Parameters: {"structure_id"=>18, "question"=>{"title"=>"Test", "sort_order"=>1, "content"=>"Test", "is_visible"=>true}}
1737
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
1738
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 18 LIMIT 1
1739
+ WARNING: Can't mass-assign protected attributes: sort_order
1740
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1741
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1742
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (0, '2011-08-01 14:37:13.281376', 'Test', '2011-08-01 14:37:13.281376', 't', 18, 'Test')
1743
+ Redirected to http://test.host/manage/structures/18/questions
1744
+ Completed 302 Found in 101ms
1745
+ SQL (0.3ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 18)
1746
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:13.378448', 'Test', '2011-08-01 14:37:13.378448', 't', 18, 'Test')
1747
+ Processing by Manage::QuestionsController#index as HTML
1748
+ Parameters: {"structure_id"=>18}
1749
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
1750
+ Structure Load (0.3ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 18 LIMIT 1
1751
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1752
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1753
+ Question Load (0.4ms) SELECT "questions".* FROM "questions" WHERE ("questions".structure_id = 18) LIMIT 25 OFFSET 0
1754
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_question.html.erb (4.4ms)
1755
+ SQL (0.2ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 18)
1756
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_model_filter.html.erb (5.3ms)
1757
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 7 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1758
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.6ms)
1759
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1760
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1761
+ Completed 200 OK in 143ms (Views: 130.6ms | ActiveRecord: 2.4ms)
1762
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:13.632836', 'Test', '2011-08-01 14:37:13.632836', 't', 18, 'Test')
1763
+ Processing by Manage::QuestionsController#edit as HTML
1764
+ Parameters: {"structure_id"=>18, "id"=>59}
1765
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
1766
+ Structure Load (0.4ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 18 LIMIT 1
1767
+ Question Load (0.3ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 59 AND ("questions".structure_id = 18) LIMIT 1
1768
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1769
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1770
+ Rendered /var/www/gems/sunrise-questions/app/views/manage/questions/_form.html.erb (9.2ms)
1771
+ Avatar Load (0.3ms) SELECT "assets".* FROM "assets" WHERE "assets"."type" = 'Avatar' AND ("assets".assetable_id = 7 AND "assets".assetable_type = 'User') ORDER BY "assets".sort_order LIMIT 1
1772
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_head.html.erb (4.5ms)
1773
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/shared/_notice.html.erb (0.1ms)
1774
+ Rendered /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/sunrise-core-0.1.5/app/views/manage/fileupload/_tmpl.html.erb (0.4ms)
1775
+ Completed 200 OK in 34ms (Views: 20.6ms | ActiveRecord: 2.1ms)
1776
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:13.756236', 'Test', '2011-08-01 14:37:13.756236', 't', 18, 'Test')
1777
+ Processing by Manage::QuestionsController#update as HTML
1778
+ Parameters: {"structure_id"=>18, "id"=>60, "question"=>{"title"=>"Update"}}
1779
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
1780
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 18 LIMIT 1
1781
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 60 AND ("questions".structure_id = 18) LIMIT 1
1782
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1783
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1784
+ AREL (0.2ms) UPDATE "questions" SET "updated_at" = '2011-08-01 14:37:13.928607', "title" = 'Update' WHERE "questions"."id" = 60
1785
+ Redirected to http://test.host/manage/structures/18/questions
1786
+ Completed 302 Found in 109ms
1787
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:14.032677', 'Test', '2011-08-01 14:37:14.032677', 't', 18, 'Test')
1788
+ SQL (0.3ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 18)
1789
+ Processing by Manage::QuestionsController#destroy as HTML
1790
+ Parameters: {"structure_id"=>18, "id"=>61}
1791
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
1792
+ Structure Load (0.2ms) SELECT "structures".* FROM "structures" WHERE "structures"."id" = 18 LIMIT 1
1793
+ Question Load (0.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 AND ("questions".structure_id = 18) LIMIT 1
1794
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1795
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE ("roles".user_id = 7) LIMIT 1
1796
+ AREL (0.1ms) DELETE FROM "questions" WHERE "questions"."id" = 61
1797
+ Redirected to http://test.host/manage/structures/18/questions
1798
+ Completed 302 Found in 102ms
1799
+ SQL (0.3ms) SELECT COUNT(*) FROM "questions" WHERE ("questions".structure_id = 18)
1800
+ Processing by Manage::QuestionsController#index as HTML
1801
+ Parameters: {"structure_id"=>18}
1802
+ Completed in 2ms
1803
+ Processing by Manage::QuestionsController#new as HTML
1804
+ Parameters: {"structure_id"=>18}
1805
+ Completed in 0ms
1806
+ Processing by Manage::QuestionsController#create as HTML
1807
+ Parameters: {"structure_id"=>18}
1808
+ Completed in 0ms
1809
+ AREL (0.2ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:14.275124', 'Test', '2011-08-01 14:37:14.275124', 't', 18, 'Test')
1810
+ Processing by Manage::QuestionsController#edit as HTML
1811
+ Parameters: {"structure_id"=>18, "id"=>62}
1812
+ Completed in 1ms
1813
+ AREL (0.3ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:14.748828', 'Test', '2011-08-01 14:37:14.748828', 't', 18, 'Test')
1814
+ Processing by Manage::QuestionsController#update as HTML
1815
+ Parameters: {"structure_id"=>18, "id"=>63}
1816
+ Completed in 1ms
1817
+ AREL (0.3ms) INSERT INTO "questions" ("sort_order", "updated_at", "title", "created_at", "is_visible", "structure_id", "content") VALUES (1, '2011-08-01 14:37:14.880151', 'Test', '2011-08-01 14:37:14.880151', 't', 18, 'Test')
1818
+ Processing by Manage::QuestionsController#destroy as HTML
1819
+ Parameters: {"structure_id"=>18, "id"=>64}
1820
+ Completed in 1ms
1821
+ SQL (0.4ms) SELECT name
1822
+ FROM sqlite_master
1823
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
1824
+ SQL (85.6ms) DELETE FROM "users";
1825
+ SQL (88.1ms) DELETE FROM "roles";
1826
+ SQL (66.2ms) DELETE FROM "structures";
1827
+ SQL (110.1ms) DELETE FROM "pages";
1828
+ SQL (66.2ms) DELETE FROM "assets";
1829
+ SQL (88.1ms) DELETE FROM "headers";
1830
+ SQL (72.0ms) DELETE FROM "questions";