my_forum 0.0.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +16 -0
  4. data/Rakefile +35 -0
  5. data/app/assets/javascripts/my_forum/admin/categories.js.coffee +0 -0
  6. data/app/assets/javascripts/my_forum/admin/dashboard.js.coffee +0 -0
  7. data/app/assets/javascripts/my_forum/admin/forums.js.coffee +0 -0
  8. data/app/assets/javascripts/my_forum/admin/roles.js +2 -0
  9. data/app/assets/javascripts/my_forum/admin/users.js +2 -0
  10. data/app/assets/javascripts/my_forum/application.js +16 -0
  11. data/app/assets/javascripts/my_forum/forums.js.coffee +0 -0
  12. data/app/assets/javascripts/my_forum/posts.js.coffee +0 -0
  13. data/app/assets/javascripts/my_forum/topics.js.coffee +0 -0
  14. data/app/assets/javascripts/my_forum/users.js.coffee +0 -0
  15. data/app/assets/javascripts/my_forum/welcome.js.coffee +0 -0
  16. data/app/assets/stylesheets/my_forum/admin/categories.css.scss +0 -0
  17. data/app/assets/stylesheets/my_forum/admin/dashboard.css.scss +3 -0
  18. data/app/assets/stylesheets/my_forum/admin/forums.css.scss +7 -0
  19. data/app/assets/stylesheets/my_forum/admin/roles.css +4 -0
  20. data/app/assets/stylesheets/my_forum/admin/users.css +4 -0
  21. data/app/assets/stylesheets/my_forum/application.css.scss +29 -0
  22. data/app/assets/stylesheets/my_forum/forums.css.scss +31 -0
  23. data/app/assets/stylesheets/my_forum/posts.css.scss +76 -0
  24. data/app/assets/stylesheets/my_forum/private_messages.css.scss +7 -0
  25. data/app/assets/stylesheets/my_forum/topics.css.scss +12 -0
  26. data/app/assets/stylesheets/my_forum/users.css.scss +0 -0
  27. data/app/assets/stylesheets/my_forum/welcome.css.scss +66 -0
  28. data/app/controllers/my_forum/admin/categories_controller.rb +36 -0
  29. data/app/controllers/my_forum/admin/dashboard_controller.rb +13 -0
  30. data/app/controllers/my_forum/admin/forums_controller.rb +35 -0
  31. data/app/controllers/my_forum/admin/roles_controller.rb +38 -0
  32. data/app/controllers/my_forum/admin/users_controller.rb +14 -0
  33. data/app/controllers/my_forum/application_controller.rb +56 -0
  34. data/app/controllers/my_forum/forums_controller.rb +39 -0
  35. data/app/controllers/my_forum/posts_controller.rb +29 -0
  36. data/app/controllers/my_forum/private_messages_controller.rb +67 -0
  37. data/app/controllers/my_forum/topics_controller.rb +47 -0
  38. data/app/controllers/my_forum/users_controller.rb +89 -0
  39. data/app/controllers/my_forum/welcome_controller.rb +12 -0
  40. data/app/helpers/my_forum/admin/dashboard_helper.rb +4 -0
  41. data/app/helpers/my_forum/admin/forums_helper.rb +4 -0
  42. data/app/helpers/my_forum/admin/roles_helper.rb +4 -0
  43. data/app/helpers/my_forum/admin/users_helper.rb +4 -0
  44. data/app/helpers/my_forum/application_helper.rb +39 -0
  45. data/app/helpers/my_forum/forums_helper.rb +42 -0
  46. data/app/helpers/my_forum/posts_helper.rb +29 -0
  47. data/app/helpers/my_forum/private_messages_helper.rb +18 -0
  48. data/app/helpers/my_forum/topics_helper.rb +11 -0
  49. data/app/helpers/my_forum/users_helper.rb +23 -0
  50. data/app/helpers/my_forum/welcome_helper.rb +4 -0
  51. data/app/mailers/application_mailer.rb +4 -0
  52. data/app/mailers/my_forum/user_mailer.rb +14 -0
  53. data/app/models/my_forum/category.rb +7 -0
  54. data/app/models/my_forum/category_permission.rb +6 -0
  55. data/app/models/my_forum/forum.rb +56 -0
  56. data/app/models/my_forum/log_read_mark.rb +4 -0
  57. data/app/models/my_forum/post.rb +14 -0
  58. data/app/models/my_forum/private_message.rb +8 -0
  59. data/app/models/my_forum/role.rb +6 -0
  60. data/app/models/my_forum/topic.rb +33 -0
  61. data/app/models/my_forum/user.rb +45 -0
  62. data/app/models/my_forum/user_group.rb +13 -0
  63. data/app/models/my_forum/user_group_link.rb +6 -0
  64. data/app/models/my_forum/user_roles.rb +6 -0
  65. data/app/views/layouts/mailer.html.erb +5 -0
  66. data/app/views/layouts/mailer.text.erb +1 -0
  67. data/app/views/layouts/my_forum/_guest_navbar.html.haml +4 -0
  68. data/app/views/layouts/my_forum/_user_navbar.html.haml +18 -0
  69. data/app/views/layouts/my_forum/admin_application.haml +27 -0
  70. data/app/views/layouts/my_forum/application.haml +21 -0
  71. data/app/views/my_forum/admin/categories/edit.haml +9 -0
  72. data/app/views/my_forum/admin/categories/new.haml +8 -0
  73. data/app/views/my_forum/admin/dashboard/index.haml +0 -0
  74. data/app/views/my_forum/admin/forums/index.haml +37 -0
  75. data/app/views/my_forum/admin/forums/new.haml +6 -0
  76. data/app/views/my_forum/admin/roles/index.haml +12 -0
  77. data/app/views/my_forum/admin/roles/new.haml +22 -0
  78. data/app/views/my_forum/admin/users/index.haml +10 -0
  79. data/app/views/my_forum/forums/_topic_subject.html.haml +15 -0
  80. data/app/views/my_forum/forums/show.haml +28 -0
  81. data/app/views/my_forum/private_messages/_sidebar.haml +10 -0
  82. data/app/views/my_forum/private_messages/inbox.haml +24 -0
  83. data/app/views/my_forum/private_messages/new.haml +16 -0
  84. data/app/views/my_forum/private_messages/show.haml +10 -0
  85. data/app/views/my_forum/topics/_post.haml +12 -0
  86. data/app/views/my_forum/topics/_quick_answer.haml +8 -0
  87. data/app/views/my_forum/topics/_topic_header.haml +4 -0
  88. data/app/views/my_forum/topics/_user_info.haml +9 -0
  89. data/app/views/my_forum/topics/new.haml +12 -0
  90. data/app/views/my_forum/topics/show.haml +21 -0
  91. data/app/views/my_forum/user_mailer/reset_password_email.haml +1 -0
  92. data/app/views/my_forum/user_mailer/reset_password_email.text.erb +1 -0
  93. data/app/views/my_forum/users/edit.haml +12 -0
  94. data/app/views/my_forum/users/forgot_password.haml +10 -0
  95. data/app/views/my_forum/users/new.haml +14 -0
  96. data/app/views/my_forum/users/signin.haml +14 -0
  97. data/app/views/my_forum/users/signout.haml +0 -0
  98. data/app/views/my_forum/welcome/index.haml +21 -0
  99. data/config/locales/en.yml +65 -0
  100. data/config/locales/ru.yml +121 -0
  101. data/config/routes.rb +31 -0
  102. data/db/migrate/20141117122725_create_my_forum_forums.rb +12 -0
  103. data/db/migrate/20141117122742_create_my_forum_topics.rb +17 -0
  104. data/db/migrate/20141117122751_create_my_forum_posts.rb +11 -0
  105. data/db/migrate/20141118081021_create_my_forum_categories.rb +8 -0
  106. data/db/migrate/20141118131215_create_my_forum_users.rb +25 -0
  107. data/db/migrate/20141222094522_create_my_forum_roles.rb +10 -0
  108. data/db/migrate/20141222094538_create_my_forum_user_roles.rb +9 -0
  109. data/db/migrate/20150202115250_create_my_forum_log_read_marks.rb +10 -0
  110. data/db/migrate/20150215200453_create_my_forum_user_groups.rb +15 -0
  111. data/db/migrate/20150215204852_create_my_forum_user_group_links.rb +9 -0
  112. data/db/migrate/20150215212443_create_my_forum_category_permissions.rb +9 -0
  113. data/db/migrate/20150227210814_create_my_forum_private_messages.rb +14 -0
  114. data/lib/my_forum/engine.rb +31 -0
  115. data/lib/my_forum/version.rb +3 -0
  116. data/lib/my_forum.rb +4 -0
  117. data/lib/tasks/my_forum_tasks.rake +4 -0
  118. data/spec/controllers/my_forum/private_messages_controller_spec.rb +7 -0
  119. data/spec/controllers/my_forum/users_controller_spec.rb +76 -0
  120. data/spec/dummy/README.rdoc +28 -0
  121. data/spec/dummy/Rakefile +6 -0
  122. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  123. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  124. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  125. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  126. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  127. data/spec/dummy/bin/bundle +3 -0
  128. data/spec/dummy/bin/rails +4 -0
  129. data/spec/dummy/bin/rake +4 -0
  130. data/spec/dummy/config/application.rb +23 -0
  131. data/spec/dummy/config/boot.rb +5 -0
  132. data/spec/dummy/config/database.yml +25 -0
  133. data/spec/dummy/config/environment.rb +5 -0
  134. data/spec/dummy/config/environments/development.rb +37 -0
  135. data/spec/dummy/config/environments/production.rb +78 -0
  136. data/spec/dummy/config/environments/test.rb +39 -0
  137. data/spec/dummy/config/initializers/assets.rb +8 -0
  138. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  139. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  140. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  141. data/spec/dummy/config/initializers/inflections.rb +16 -0
  142. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  143. data/spec/dummy/config/initializers/session_store.rb +3 -0
  144. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  145. data/spec/dummy/config/locales/en.yml +23 -0
  146. data/spec/dummy/config/routes.rb +4 -0
  147. data/spec/dummy/config/secrets.yml +22 -0
  148. data/spec/dummy/config.ru +4 -0
  149. data/spec/dummy/db/development.sqlite3 +0 -0
  150. data/spec/dummy/db/schema.rb +128 -0
  151. data/spec/dummy/db/test.sqlite3 +0 -0
  152. data/spec/dummy/log/development.log +97 -0
  153. data/spec/dummy/log/test.log +4926 -0
  154. data/spec/dummy/public/404.html +67 -0
  155. data/spec/dummy/public/422.html +67 -0
  156. data/spec/dummy/public/500.html +66 -0
  157. data/spec/dummy/public/favicon.ico +0 -0
  158. data/spec/helpers/my_forum/private_messages_helper_spec.rb +17 -0
  159. data/spec/models/my_forum/private_message_spec.rb +7 -0
  160. data/spec/models/my_forum/user_spec.rb +13 -0
  161. data/spec/rails_helper.rb +52 -0
  162. data/spec/spec_helper.rb +87 -0
  163. metadata +348 -0
@@ -0,0 +1,39 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+
37
+ # Raises error for missing translations
38
+ # config.action_view.raise_on_missing_translations = true
39
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Precompile additional assets.
7
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
8
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount MyForum::Engine => "/my_forum"
4
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: b33fc5dc6f2293c3ff5fdf3404e427676da2d186781ab5ac3ebab6e231d8673a7f5206ed75dfa52aff0d8cfe5bbf3332f4153303641823a132f42072731f83c2
15
+
16
+ test:
17
+ secret_key_base: 9e8e06a4e1369bf07503df599e2a630535498ef97cccfac11433ba77ba71453026b8b57c8f89f4d4471712d2532b0ad6740b699b46d56e2f3a9e6d5629f5c0e8
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,128 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150227210814) do
15
+
16
+ create_table "my_forum_categories", force: :cascade do |t|
17
+ t.string "name"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ create_table "my_forum_category_permissions", force: :cascade do |t|
23
+ t.integer "user_group_id"
24
+ t.integer "category_id"
25
+ t.datetime "created_at", null: false
26
+ t.datetime "updated_at", null: false
27
+ end
28
+
29
+ create_table "my_forum_forums", force: :cascade do |t|
30
+ t.integer "category_id"
31
+ t.string "name"
32
+ t.string "description"
33
+ t.integer "topics_count"
34
+ t.integer "posts_count"
35
+ t.datetime "created_at"
36
+ t.datetime "updated_at"
37
+ end
38
+
39
+ create_table "my_forum_log_read_marks", force: :cascade do |t|
40
+ t.integer "user_id"
41
+ t.integer "topic_id"
42
+ t.integer "post_id"
43
+ t.datetime "created_at"
44
+ t.datetime "updated_at"
45
+ end
46
+
47
+ create_table "my_forum_posts", force: :cascade do |t|
48
+ t.integer "user_id"
49
+ t.integer "topic_id"
50
+ t.integer "forum_id"
51
+ t.text "text"
52
+ t.datetime "created_at"
53
+ t.datetime "updated_at"
54
+ end
55
+
56
+ create_table "my_forum_private_messages", force: :cascade do |t|
57
+ t.integer "sender_id"
58
+ t.integer "recipient_id"
59
+ t.boolean "sender_deleted", default: false
60
+ t.boolean "recipient_deleted", default: false
61
+ t.boolean "unread", default: true
62
+ t.string "subject"
63
+ t.text "body"
64
+ t.datetime "created_at", null: false
65
+ t.datetime "updated_at", null: false
66
+ end
67
+
68
+ create_table "my_forum_roles", force: :cascade do |t|
69
+ t.string "name"
70
+ t.string "color"
71
+ t.text "rights"
72
+ t.datetime "created_at"
73
+ t.datetime "updated_at"
74
+ end
75
+
76
+ create_table "my_forum_topics", force: :cascade do |t|
77
+ t.integer "forum_id"
78
+ t.integer "user_id"
79
+ t.integer "latest_post_id"
80
+ t.string "name"
81
+ t.string "description"
82
+ t.integer "views"
83
+ t.integer "posts_count", default: 0
84
+ t.boolean "pinned", default: false
85
+ t.boolean "closed", default: false
86
+ t.boolean "deleted", default: false
87
+ t.datetime "created_at"
88
+ t.datetime "updated_at"
89
+ end
90
+
91
+ create_table "my_forum_user_group_links", force: :cascade do |t|
92
+ t.integer "user_id"
93
+ t.integer "user_group_id"
94
+ t.datetime "created_at"
95
+ t.datetime "updated_at"
96
+ end
97
+
98
+ create_table "my_forum_user_groups", force: :cascade do |t|
99
+ t.string "name"
100
+ t.string "html_color"
101
+ t.boolean "default", default: false
102
+ t.datetime "created_at"
103
+ t.datetime "updated_at"
104
+ end
105
+
106
+ create_table "my_forum_user_roles", force: :cascade do |t|
107
+ t.integer "user_id"
108
+ t.integer "role_id"
109
+ t.datetime "created_at"
110
+ t.datetime "updated_at"
111
+ end
112
+
113
+ create_table "my_forum_users", force: :cascade do |t|
114
+ t.string "login"
115
+ t.string "password"
116
+ t.string "salt"
117
+ t.string "email"
118
+ t.integer "posts_count"
119
+ t.boolean "is_admin", default: false
120
+ t.boolean "is_moderator", default: false
121
+ t.boolean "is_deleted", default: false
122
+ t.boolean "permanently_banned", default: false
123
+ t.datetime "created_at"
124
+ t.datetime "updated_at"
125
+ t.datetime "last_logged_in"
126
+ end
127
+
128
+ end
Binary file
@@ -0,0 +1,97 @@
1
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
2
+ SQLite3::SQLException: no such table: my_forum_users: SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
3
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
4
+ SQLite3::SQLException: no such table: my_forum_users: SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
5
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
6
+ SQLite3::SQLException: no such table: my_forum_users: SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
7
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
8
+  (0.1ms) select sqlite_version(*)
9
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
12
+ SQLite3::SQLException: no such table: my_forum_users: SELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1
13
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
14
+ Migrating to CreateMyForumForums (20141117122725)
15
+  (0.0ms) begin transaction
16
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20141117122725_create_my_forum_forums.rb:9)
17
+  (0.4ms) CREATE TABLE "my_forum_forums" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "name" varchar, "description" varchar, "topics_count" integer, "posts_count" integer, "created_at" datetime, "updated_at" datetime) 
18
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117122725"]]
19
+  (0.8ms) commit transaction
20
+ Migrating to CreateMyForumTopics (20141117122742)
21
+  (0.1ms) begin transaction
22
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20141117122742_create_my_forum_topics.rb:14)
23
+  (0.3ms) CREATE TABLE "my_forum_topics" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forum_id" integer, "user_id" integer, "latest_post_id" integer, "name" varchar, "description" varchar, "views" integer, "posts_count" integer DEFAULT 0, "pinned" boolean DEFAULT 'f', "closed" boolean DEFAULT 'f', "deleted" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime) 
24
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117122742"]]
25
+  (0.6ms) commit transaction
26
+ Migrating to CreateMyForumPosts (20141117122751)
27
+  (0.0ms) begin transaction
28
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20141117122751_create_my_forum_posts.rb:8)
29
+  (0.2ms) CREATE TABLE "my_forum_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "topic_id" integer, "forum_id" integer, "text" text, "created_at" datetime, "updated_at" datetime) 
30
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117122751"]]
31
+  (0.7ms) commit transaction
32
+ Migrating to CreateMyForumCategories (20141118081021)
33
+  (0.0ms) begin transaction
34
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20141118081021_create_my_forum_categories.rb:5)
35
+  (0.2ms) CREATE TABLE "my_forum_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
36
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141118081021"]]
37
+  (0.7ms) commit transaction
38
+ Migrating to CreateMyForumUsers (20141118131215)
39
+  (0.0ms) begin transaction
40
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/vint/rails/my_forum/db/migrate/20141118131215_create_my_forum_users.rb:13)
41
+  (0.2ms) CREATE TABLE "my_forum_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar, "password" varchar, "salt" varchar, "email" varchar, "posts_count" integer, "is_admin" boolean DEFAULT 'f', "is_moderator" boolean DEFAULT 'f', "is_deleted" boolean DEFAULT 'f', "permanently_banned" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime, "last_logged_in" datetime) 
42
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'admin' LIMIT 1
43
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'admin@example.com' LIMIT 1
44
+ SQL (0.1ms) INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "admin"], ["password", "2c3df41df92c27b03b3c0d28f3e03a989e530ebaf01148065784c61b89b868e4"], ["email", "admin@example.com"], ["salt", "dc508b1e69691e2e34b9025b78969a75b7145d044f18b3fb5ffa03a58bab19b6"], ["created_at", "2015-02-25 08:48:52.942017"], ["updated_at", "2015-02-25 08:48:52.942017"]]
45
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141118131215"]]
46
+  (0.7ms) commit transaction
47
+ Migrating to CreateMyForumRoles (20141222094522)
48
+  (0.0ms) begin transaction
49
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20141222094522_create_my_forum_roles.rb:7)
50
+  (0.3ms) CREATE TABLE "my_forum_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "color" varchar, "rights" text, "created_at" datetime, "updated_at" datetime)
51
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222094522"]]
52
+  (0.5ms) commit transaction
53
+ Migrating to CreateMyForumUserRoles (20141222094538)
54
+  (0.0ms) begin transaction
55
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20141222094538_create_my_forum_user_roles.rb:6)
56
+  (0.2ms) CREATE TABLE "my_forum_user_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime)
57
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222094538"]]
58
+  (0.5ms) commit transaction
59
+ Migrating to CreateMyForumLogReadMarks (20150202115250)
60
+  (0.0ms) begin transaction
61
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20150202115250_create_my_forum_log_read_marks.rb:7)
62
+  (0.2ms) CREATE TABLE "my_forum_log_read_marks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "topic_id" integer, "post_id" integer, "created_at" datetime, "updated_at" datetime)
63
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150202115250"]]
64
+  (0.6ms) commit transaction
65
+ Migrating to CreateMyForumUserGroups (20150215200453)
66
+  (0.0ms) begin transaction
67
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20150215200453_create_my_forum_user_groups.rb:7)
68
+  (0.3ms) CREATE TABLE "my_forum_user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "html_color" varchar, "default" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime)
69
+ MyForum::UserGroup Load (0.1ms) SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."id" = ? LIMIT 1 [["id", 1]]
70
+  (0.4ms) rollback transaction
71
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
72
+ Migrating to CreateMyForumUserGroups (20150215200453)
73
+  (0.1ms) begin transaction
74
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20150215200453_create_my_forum_user_groups.rb:7)
75
+  (0.4ms) CREATE TABLE "my_forum_user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "html_color" varchar, "default" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime) 
76
+ MyForum::UserGroup Load (0.1ms) SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1 [["name", "Guest"]]
77
+ MyForum::UserGroup Load (0.0ms) SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1 [["name", "Member"]]
78
+ SQL (0.1ms) INSERT INTO "my_forum_user_groups" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Guests"], ["created_at", "2015-02-25 08:52:12.970546"], ["updated_at", "2015-02-25 08:52:12.970546"]]
79
+ SQL (0.1ms) INSERT INTO "my_forum_user_groups" ("name", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Member"], ["default", "t"], ["created_at", "2015-02-25 08:52:12.971951"], ["updated_at", "2015-02-25 08:52:12.971951"]]
80
+ SQL (0.1ms) INSERT INTO "my_forum_user_groups" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Moderator"], ["created_at", "2015-02-25 08:52:12.972924"], ["updated_at", "2015-02-25 08:52:12.972924"]]
81
+ SQL (0.0ms) INSERT INTO "my_forum_user_groups" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Admin"], ["created_at", "2015-02-25 08:52:12.973798"], ["updated_at", "2015-02-25 08:52:12.973798"]]
82
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150215200453"]]
83
+  (1.3ms) commit transaction
84
+ Migrating to CreateMyForumUserGroupLinks (20150215204852)
85
+  (0.0ms) begin transaction
86
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/vint/rails/my_forum/db/migrate/20150215204852_create_my_forum_user_group_links.rb:6)
87
+  (0.3ms) CREATE TABLE "my_forum_user_group_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "user_group_id" integer, "created_at" datetime, "updated_at" datetime) 
88
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150215204852"]]
89
+  (0.5ms) commit transaction
90
+ Migrating to CreateMyForumCategoryPermissions (20150215212443)
91
+  (0.0ms) begin transaction
92
+  (0.2ms) CREATE TABLE "my_forum_category_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
93
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150215212443"]]
94
+  (0.4ms) commit transaction
95
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
96
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
97
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"