my_forum 0.0.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +16 -0
- data/Rakefile +35 -0
- data/app/assets/javascripts/my_forum/admin/categories.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/admin/dashboard.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/admin/forums.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/admin/roles.js +2 -0
- data/app/assets/javascripts/my_forum/admin/users.js +2 -0
- data/app/assets/javascripts/my_forum/application.js +16 -0
- data/app/assets/javascripts/my_forum/forums.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/posts.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/topics.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/users.js.coffee +0 -0
- data/app/assets/javascripts/my_forum/welcome.js.coffee +0 -0
- data/app/assets/stylesheets/my_forum/admin/categories.css.scss +0 -0
- data/app/assets/stylesheets/my_forum/admin/dashboard.css.scss +3 -0
- data/app/assets/stylesheets/my_forum/admin/forums.css.scss +7 -0
- data/app/assets/stylesheets/my_forum/admin/roles.css +4 -0
- data/app/assets/stylesheets/my_forum/admin/users.css +4 -0
- data/app/assets/stylesheets/my_forum/application.css.scss +29 -0
- data/app/assets/stylesheets/my_forum/forums.css.scss +31 -0
- data/app/assets/stylesheets/my_forum/posts.css.scss +76 -0
- data/app/assets/stylesheets/my_forum/private_messages.css.scss +7 -0
- data/app/assets/stylesheets/my_forum/topics.css.scss +12 -0
- data/app/assets/stylesheets/my_forum/users.css.scss +0 -0
- data/app/assets/stylesheets/my_forum/welcome.css.scss +66 -0
- data/app/controllers/my_forum/admin/categories_controller.rb +36 -0
- data/app/controllers/my_forum/admin/dashboard_controller.rb +13 -0
- data/app/controllers/my_forum/admin/forums_controller.rb +35 -0
- data/app/controllers/my_forum/admin/roles_controller.rb +38 -0
- data/app/controllers/my_forum/admin/users_controller.rb +14 -0
- data/app/controllers/my_forum/application_controller.rb +56 -0
- data/app/controllers/my_forum/forums_controller.rb +39 -0
- data/app/controllers/my_forum/posts_controller.rb +29 -0
- data/app/controllers/my_forum/private_messages_controller.rb +67 -0
- data/app/controllers/my_forum/topics_controller.rb +47 -0
- data/app/controllers/my_forum/users_controller.rb +89 -0
- data/app/controllers/my_forum/welcome_controller.rb +12 -0
- data/app/helpers/my_forum/admin/dashboard_helper.rb +4 -0
- data/app/helpers/my_forum/admin/forums_helper.rb +4 -0
- data/app/helpers/my_forum/admin/roles_helper.rb +4 -0
- data/app/helpers/my_forum/admin/users_helper.rb +4 -0
- data/app/helpers/my_forum/application_helper.rb +39 -0
- data/app/helpers/my_forum/forums_helper.rb +42 -0
- data/app/helpers/my_forum/posts_helper.rb +29 -0
- data/app/helpers/my_forum/private_messages_helper.rb +18 -0
- data/app/helpers/my_forum/topics_helper.rb +11 -0
- data/app/helpers/my_forum/users_helper.rb +23 -0
- data/app/helpers/my_forum/welcome_helper.rb +4 -0
- data/app/mailers/application_mailer.rb +4 -0
- data/app/mailers/my_forum/user_mailer.rb +14 -0
- data/app/models/my_forum/category.rb +7 -0
- data/app/models/my_forum/category_permission.rb +6 -0
- data/app/models/my_forum/forum.rb +56 -0
- data/app/models/my_forum/log_read_mark.rb +4 -0
- data/app/models/my_forum/post.rb +14 -0
- data/app/models/my_forum/private_message.rb +8 -0
- data/app/models/my_forum/role.rb +6 -0
- data/app/models/my_forum/topic.rb +33 -0
- data/app/models/my_forum/user.rb +45 -0
- data/app/models/my_forum/user_group.rb +13 -0
- data/app/models/my_forum/user_group_link.rb +6 -0
- data/app/models/my_forum/user_roles.rb +6 -0
- data/app/views/layouts/mailer.html.erb +5 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/layouts/my_forum/_guest_navbar.html.haml +4 -0
- data/app/views/layouts/my_forum/_user_navbar.html.haml +18 -0
- data/app/views/layouts/my_forum/admin_application.haml +27 -0
- data/app/views/layouts/my_forum/application.haml +21 -0
- data/app/views/my_forum/admin/categories/edit.haml +9 -0
- data/app/views/my_forum/admin/categories/new.haml +8 -0
- data/app/views/my_forum/admin/dashboard/index.haml +0 -0
- data/app/views/my_forum/admin/forums/index.haml +37 -0
- data/app/views/my_forum/admin/forums/new.haml +6 -0
- data/app/views/my_forum/admin/roles/index.haml +12 -0
- data/app/views/my_forum/admin/roles/new.haml +22 -0
- data/app/views/my_forum/admin/users/index.haml +10 -0
- data/app/views/my_forum/forums/_topic_subject.html.haml +15 -0
- data/app/views/my_forum/forums/show.haml +28 -0
- data/app/views/my_forum/private_messages/_sidebar.haml +10 -0
- data/app/views/my_forum/private_messages/inbox.haml +24 -0
- data/app/views/my_forum/private_messages/new.haml +16 -0
- data/app/views/my_forum/private_messages/show.haml +10 -0
- data/app/views/my_forum/topics/_post.haml +12 -0
- data/app/views/my_forum/topics/_quick_answer.haml +8 -0
- data/app/views/my_forum/topics/_topic_header.haml +4 -0
- data/app/views/my_forum/topics/_user_info.haml +9 -0
- data/app/views/my_forum/topics/new.haml +12 -0
- data/app/views/my_forum/topics/show.haml +21 -0
- data/app/views/my_forum/user_mailer/reset_password_email.haml +1 -0
- data/app/views/my_forum/user_mailer/reset_password_email.text.erb +1 -0
- data/app/views/my_forum/users/edit.haml +12 -0
- data/app/views/my_forum/users/forgot_password.haml +10 -0
- data/app/views/my_forum/users/new.haml +14 -0
- data/app/views/my_forum/users/signin.haml +14 -0
- data/app/views/my_forum/users/signout.haml +0 -0
- data/app/views/my_forum/welcome/index.haml +21 -0
- data/config/locales/en.yml +65 -0
- data/config/locales/ru.yml +121 -0
- data/config/routes.rb +31 -0
- data/db/migrate/20141117122725_create_my_forum_forums.rb +12 -0
- data/db/migrate/20141117122742_create_my_forum_topics.rb +17 -0
- data/db/migrate/20141117122751_create_my_forum_posts.rb +11 -0
- data/db/migrate/20141118081021_create_my_forum_categories.rb +8 -0
- data/db/migrate/20141118131215_create_my_forum_users.rb +25 -0
- data/db/migrate/20141222094522_create_my_forum_roles.rb +10 -0
- data/db/migrate/20141222094538_create_my_forum_user_roles.rb +9 -0
- data/db/migrate/20150202115250_create_my_forum_log_read_marks.rb +10 -0
- data/db/migrate/20150215200453_create_my_forum_user_groups.rb +15 -0
- data/db/migrate/20150215204852_create_my_forum_user_group_links.rb +9 -0
- data/db/migrate/20150215212443_create_my_forum_category_permissions.rb +9 -0
- data/db/migrate/20150227210814_create_my_forum_private_messages.rb +14 -0
- data/lib/my_forum/engine.rb +31 -0
- data/lib/my_forum/version.rb +3 -0
- data/lib/my_forum.rb +4 -0
- data/lib/tasks/my_forum_tasks.rake +4 -0
- data/spec/controllers/my_forum/private_messages_controller_spec.rb +7 -0
- data/spec/controllers/my_forum/users_controller_spec.rb +76 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +128 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +97 -0
- data/spec/dummy/log/test.log +4926 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/my_forum/private_messages_helper_spec.rb +17 -0
- data/spec/models/my_forum/private_message_spec.rb +7 -0
- data/spec/models/my_forum/user_spec.rb +13 -0
- data/spec/rails_helper.rb +52 -0
- data/spec/spec_helper.rb +87 -0
- 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,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,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,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"] %>
|
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
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1[0m
|
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
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1[0m
|
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
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1[0m
|
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
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
8
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
9
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
10
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
11
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" ORDER BY "my_forum_users"."id" DESC LIMIT 1[0m
|
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14
|
+
Migrating to CreateMyForumForums (20141117122725)
|
15
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
18
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117122725"]]
|
19
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
20
|
+
Migrating to CreateMyForumTopics (20141117122742)
|
21
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
24
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117122742"]]
|
25
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
26
|
+
Migrating to CreateMyForumPosts (20141117122751)
|
27
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
30
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141117122751"]]
|
31
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
32
|
+
Migrating to CreateMyForumCategories (20141118081021)
|
33
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "my_forum_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
36
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141118081021"]]
|
37
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
38
|
+
Migrating to CreateMyForumUsers (20141118131215)
|
39
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
42
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'admin' LIMIT 1
|
43
|
+
[1m[36mMyForum::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'admin@example.com' LIMIT 1[0m
|
44
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141118131215"]]
|
46
|
+
[1m[35m (0.7ms)[0m commit transaction
|
47
|
+
Migrating to CreateMyForumRoles (20141222094522)
|
48
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141222094522"]]
|
52
|
+
[1m[35m (0.5ms)[0m commit transaction
|
53
|
+
Migrating to CreateMyForumUserRoles (20141222094538)
|
54
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141222094538"]]
|
58
|
+
[1m[35m (0.5ms)[0m commit transaction
|
59
|
+
Migrating to CreateMyForumLogReadMarks (20150202115250)
|
60
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150202115250"]]
|
64
|
+
[1m[35m (0.6ms)[0m commit transaction
|
65
|
+
Migrating to CreateMyForumUserGroups (20150215200453)
|
66
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mMyForum::UserGroup Load (0.1ms)[0m [1mSELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."id" = ? LIMIT 1[0m [["id", 1]]
|
70
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
71
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
72
|
+
Migrating to CreateMyForumUserGroups (20150215200453)
|
73
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
76
|
+
[1m[35mMyForum::UserGroup Load (0.1ms)[0m SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1 [["name", "Guest"]]
|
77
|
+
[1m[36mMyForum::UserGroup Load (0.0ms)[0m [1mSELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1[0m [["name", "Member"]]
|
78
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "my_forum_user_groups" ("name", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Member"], ["default", "t"], ["created_at", "2015-02-25 08:52:12.971951"], ["updated_at", "2015-02-25 08:52:12.971951"]]
|
80
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "my_forum_user_groups" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Admin"], ["created_at", "2015-02-25 08:52:12.973798"], ["updated_at", "2015-02-25 08:52:12.973798"]]
|
82
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150215200453"]]
|
83
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
84
|
+
Migrating to CreateMyForumUserGroupLinks (20150215204852)
|
85
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
88
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150215204852"]]
|
89
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
90
|
+
Migrating to CreateMyForumCategoryPermissions (20150215212443)
|
91
|
+
[1m[35m (0.0ms)[0m begin transaction
|
92
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
93
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150215212443"]]
|
94
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
95
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
96
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
97
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|