update to rails 4.2.5, clean up
This commit is contained in:
17
Gemfile
17
Gemfile
@@ -1,10 +1,10 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'rails', '4.1.0'
|
gem 'rails', github: 'rails/rails', branch: '4-2-stable'
|
||||||
|
|
||||||
gem 'mysql2'
|
gem 'mysql2'
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
gem 'bcrypt-ruby' # To use ActiveModel's has_secure_password
|
gem 'bcrypt' # To use ActiveModel's has_secure_password
|
||||||
gem 'sanitize'
|
gem 'sanitize'
|
||||||
gem 'strip_attributes'
|
gem 'strip_attributes'
|
||||||
gem 'redcarpet', '~> 3.2.3'
|
gem 'redcarpet', '~> 3.2.3'
|
||||||
@@ -20,7 +20,6 @@ gem 'jquery-textcomplete-rails', github: 'RedstonerServer/jquery-textcomplete-ra
|
|||||||
# in production environments by default.
|
# in production environments by default.
|
||||||
group :assets do
|
group :assets do
|
||||||
gem 'sass-rails'
|
gem 'sass-rails'
|
||||||
gem 'coffee-rails'
|
|
||||||
gem 'uglifier'
|
gem 'uglifier'
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -33,7 +32,15 @@ group :development do
|
|||||||
gem 'capistrano-rails', '~> 1.1.2'
|
gem 'capistrano-rails', '~> 1.1.2'
|
||||||
gem 'capistrano-rbenv', '~> 2.0'
|
gem 'capistrano-rbenv', '~> 2.0'
|
||||||
gem 'capistrano-bundler', '~> 1.1.3'
|
gem 'capistrano-bundler', '~> 1.1.3'
|
||||||
|
# windows timezone foo
|
||||||
|
gem 'tzinfo-data', platforms: [:mingw, :mswin]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use unicorn as the app server
|
group :test do
|
||||||
gem 'unicorn'
|
gem 'sqlite3'
|
||||||
|
end
|
||||||
|
|
||||||
|
group :production do
|
||||||
|
# Use unicorn as the app server
|
||||||
|
gem 'unicorn'
|
||||||
|
end
|
||||||
273
Gemfile.lock
273
Gemfile.lock
@@ -23,46 +23,76 @@ GIT
|
|||||||
actionpack (>= 3.0.0)
|
actionpack (>= 3.0.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
|
|
||||||
|
GIT
|
||||||
|
remote: git://github.com/rails/rails.git
|
||||||
|
revision: dd750a33c854bcd9eefe7ea46b0b0bb52c06767f
|
||||||
|
branch: 4-2-stable
|
||||||
|
specs:
|
||||||
|
actionmailer (4.2.5)
|
||||||
|
actionpack (= 4.2.5)
|
||||||
|
actionview (= 4.2.5)
|
||||||
|
activejob (= 4.2.5)
|
||||||
|
mail (~> 2.5, >= 2.5.4)
|
||||||
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
|
actionpack (4.2.5)
|
||||||
|
actionview (= 4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
rack (~> 1.6)
|
||||||
|
rack-test (~> 0.6.2)
|
||||||
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
|
actionview (4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
builder (~> 3.1)
|
||||||
|
erubis (~> 2.7.0)
|
||||||
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
|
activejob (4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
globalid (>= 0.3.0)
|
||||||
|
activemodel (4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
builder (~> 3.1)
|
||||||
|
activerecord (4.2.5)
|
||||||
|
activemodel (= 4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
arel (~> 6.0)
|
||||||
|
activesupport (4.2.5)
|
||||||
|
i18n (~> 0.7)
|
||||||
|
json (~> 1.7, >= 1.7.7)
|
||||||
|
minitest (~> 5.1)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
|
tzinfo (~> 1.1)
|
||||||
|
rails (4.2.5)
|
||||||
|
actionmailer (= 4.2.5)
|
||||||
|
actionpack (= 4.2.5)
|
||||||
|
actionview (= 4.2.5)
|
||||||
|
activejob (= 4.2.5)
|
||||||
|
activemodel (= 4.2.5)
|
||||||
|
activerecord (= 4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
bundler (>= 1.3.0, < 2.0)
|
||||||
|
railties (= 4.2.5)
|
||||||
|
sprockets-rails
|
||||||
|
railties (4.2.5)
|
||||||
|
actionpack (= 4.2.5)
|
||||||
|
activesupport (= 4.2.5)
|
||||||
|
rake (>= 0.8.7)
|
||||||
|
thor (>= 0.18.1, < 2.0)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (4.1.0)
|
activerecord-session_store (0.1.2)
|
||||||
actionpack (= 4.1.0)
|
|
||||||
actionview (= 4.1.0)
|
|
||||||
mail (~> 2.5.4)
|
|
||||||
actionpack (4.1.0)
|
|
||||||
actionview (= 4.1.0)
|
|
||||||
activesupport (= 4.1.0)
|
|
||||||
rack (~> 1.5.2)
|
|
||||||
rack-test (~> 0.6.2)
|
|
||||||
actionview (4.1.0)
|
|
||||||
activesupport (= 4.1.0)
|
|
||||||
builder (~> 3.1)
|
|
||||||
erubis (~> 2.7.0)
|
|
||||||
activemodel (4.1.0)
|
|
||||||
activesupport (= 4.1.0)
|
|
||||||
builder (~> 3.1)
|
|
||||||
activerecord (4.1.0)
|
|
||||||
activemodel (= 4.1.0)
|
|
||||||
activesupport (= 4.1.0)
|
|
||||||
arel (~> 5.0.0)
|
|
||||||
activerecord-session_store (0.1.0)
|
|
||||||
actionpack (>= 4.0.0, < 5)
|
actionpack (>= 4.0.0, < 5)
|
||||||
activerecord (>= 4.0.0, < 5)
|
activerecord (>= 4.0.0, < 5)
|
||||||
railties (>= 4.0.0, < 5)
|
railties (>= 4.0.0, < 5)
|
||||||
activesupport (4.1.0)
|
arel (6.0.3)
|
||||||
i18n (~> 0.6, >= 0.6.9)
|
bcrypt (3.1.10)
|
||||||
json (~> 1.7, >= 1.7.7)
|
better_errors (2.1.1)
|
||||||
minitest (~> 5.1)
|
|
||||||
thread_safe (~> 0.1)
|
|
||||||
tzinfo (~> 1.1)
|
|
||||||
arel (5.0.0)
|
|
||||||
bcrypt (3.1.7)
|
|
||||||
bcrypt-ruby (3.1.5)
|
|
||||||
bcrypt (>= 3.1.3)
|
|
||||||
better_errors (1.1.0)
|
|
||||||
coderay (>= 1.0.0)
|
coderay (>= 1.0.0)
|
||||||
erubis (>= 2.6.6)
|
erubis (>= 2.6.6)
|
||||||
|
rack (>= 0.9.0)
|
||||||
binding_of_caller (0.7.2)
|
binding_of_caller (0.7.2)
|
||||||
debug_inspector (>= 0.0.1)
|
debug_inspector (>= 0.0.1)
|
||||||
builder (3.2.2)
|
builder (3.2.2)
|
||||||
@@ -73,112 +103,117 @@ GEM
|
|||||||
capistrano-bundler (1.1.4)
|
capistrano-bundler (1.1.4)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
sshkit (~> 1.2)
|
sshkit (~> 1.2)
|
||||||
capistrano-rails (1.1.2)
|
capistrano-rails (1.1.5)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
capistrano-bundler (~> 1.1)
|
capistrano-bundler (~> 1.1)
|
||||||
capistrano-rbenv (2.0.3)
|
capistrano-rbenv (2.0.4)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
sshkit (~> 1.3)
|
sshkit (~> 1.3)
|
||||||
choice (0.1.6)
|
choice (0.2.0)
|
||||||
coderay (1.1.0)
|
coderay (1.1.0)
|
||||||
coffee-rails (4.0.1)
|
coffee-rails (4.1.1)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.1.x)
|
||||||
coffee-script (2.2.0)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.7.0)
|
coffee-script-source (1.10.0)
|
||||||
colorize (0.7.5)
|
concurrent-ruby (1.0.0)
|
||||||
|
crass (1.0.2)
|
||||||
debug_inspector (0.0.2)
|
debug_inspector (0.0.2)
|
||||||
|
domain_name (0.5.25)
|
||||||
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.0.2)
|
execjs (2.6.0)
|
||||||
hike (1.2.3)
|
globalid (0.3.6)
|
||||||
hirb (0.7.1)
|
activesupport (>= 4.1.0)
|
||||||
i18n (0.6.9)
|
hirb (0.7.3)
|
||||||
jquery-rails (3.1.0)
|
http-cookie (1.0.2)
|
||||||
railties (>= 3.0, < 5.0)
|
domain_name (~> 0.5)
|
||||||
|
i18n (0.7.0)
|
||||||
|
jquery-rails (4.1.0)
|
||||||
|
rails-dom-testing (~> 1.0)
|
||||||
|
railties (>= 4.2.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
json (1.8.1)
|
json (1.8.3)
|
||||||
kgio (2.9.2)
|
kgio (2.10.0)
|
||||||
mail (2.5.4)
|
loofah (2.0.3)
|
||||||
mime-types (~> 1.16)
|
nokogiri (>= 1.5.9)
|
||||||
treetop (~> 1.4.8)
|
mail (2.6.3)
|
||||||
mime-types (1.25.1)
|
mime-types (>= 1.16, < 3)
|
||||||
mini_portile (0.5.3)
|
mime-types (2.99)
|
||||||
minitest (5.3.2)
|
mini_portile2 (2.0.0)
|
||||||
multi_json (1.9.2)
|
minitest (5.8.3)
|
||||||
mysql2 (0.3.15)
|
mysql2 (0.4.2)
|
||||||
net-scp (1.2.1)
|
net-scp (1.2.1)
|
||||||
net-ssh (>= 2.6.5)
|
net-ssh (>= 2.6.5)
|
||||||
net-ssh (2.9.2)
|
net-ssh (3.0.2)
|
||||||
nokogiri (1.6.1)
|
netrc (0.11.0)
|
||||||
mini_portile (~> 0.5.0)
|
nokogiri (1.6.7.1)
|
||||||
polyglot (0.3.4)
|
mini_portile2 (~> 2.0.0.rc2)
|
||||||
rack (1.5.2)
|
nokogumbo (1.4.7)
|
||||||
rack-test (0.6.2)
|
nokogiri
|
||||||
|
rack (1.6.4)
|
||||||
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (4.1.0)
|
rails-deprecated_sanitizer (1.0.3)
|
||||||
actionmailer (= 4.1.0)
|
activesupport (>= 4.2.0.alpha)
|
||||||
actionpack (= 4.1.0)
|
rails-dom-testing (1.0.7)
|
||||||
actionview (= 4.1.0)
|
activesupport (>= 4.2.0.beta, < 5.0)
|
||||||
activemodel (= 4.1.0)
|
nokogiri (~> 1.6.0)
|
||||||
activerecord (= 4.1.0)
|
rails-deprecated_sanitizer (>= 1.0.1)
|
||||||
activesupport (= 4.1.0)
|
rails-erd (1.4.5)
|
||||||
bundler (>= 1.3.0, < 2.0)
|
activerecord (>= 3.2)
|
||||||
railties (= 4.1.0)
|
activesupport (>= 3.2)
|
||||||
sprockets-rails (~> 2.0)
|
choice (~> 0.2.0)
|
||||||
rails-erd (1.1.0)
|
ruby-graphviz (~> 1.2)
|
||||||
activerecord (>= 3.0)
|
rails-html-sanitizer (1.0.2)
|
||||||
activesupport (>= 3.0)
|
loofah (~> 2.0)
|
||||||
choice (~> 0.1.6)
|
raindrops (0.15.0)
|
||||||
ruby-graphviz (~> 1.0.4)
|
rake (10.5.0)
|
||||||
railties (4.1.0)
|
rb-readline (0.5.3)
|
||||||
actionpack (= 4.1.0)
|
|
||||||
activesupport (= 4.1.0)
|
|
||||||
rake (>= 0.8.7)
|
|
||||||
thor (>= 0.18.1, < 2.0)
|
|
||||||
raindrops (0.13.0)
|
|
||||||
rake (10.2.2)
|
|
||||||
rb-readline (0.5.1)
|
|
||||||
redcarpet (3.2.3)
|
redcarpet (3.2.3)
|
||||||
rest-client (1.6.7)
|
rest-client (1.8.0)
|
||||||
mime-types (>= 1.16)
|
http-cookie (>= 1.0.2, < 2.0)
|
||||||
ruby-graphviz (1.0.9)
|
mime-types (>= 1.16, < 3.0)
|
||||||
sanitize (2.1.0)
|
netrc (~> 0.7)
|
||||||
|
ruby-graphviz (1.2.2)
|
||||||
|
sanitize (4.0.1)
|
||||||
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.4.4)
|
nokogiri (>= 1.4.4)
|
||||||
sass (3.2.19)
|
nokogumbo (~> 1.4.1)
|
||||||
sass-rails (4.0.3)
|
sass (3.4.21)
|
||||||
|
sass-rails (5.0.4)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
sass (~> 3.2.0)
|
sass (~> 3.1)
|
||||||
sprockets (~> 2.8, <= 2.11.0)
|
sprockets (>= 2.8, < 4.0)
|
||||||
sprockets-rails (~> 2.0)
|
sprockets-rails (>= 2.0, < 4.0)
|
||||||
sprockets (2.11.0)
|
tilt (>= 1.1, < 3)
|
||||||
hike (~> 1.2)
|
sprockets (3.5.2)
|
||||||
multi_json (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (~> 1.0)
|
rack (> 1, < 3)
|
||||||
tilt (~> 1.1, != 1.3.0)
|
sprockets-rails (3.0.0)
|
||||||
sprockets-rails (2.1.3)
|
actionpack (>= 4.0)
|
||||||
actionpack (>= 3.0)
|
activesupport (>= 4.0)
|
||||||
activesupport (>= 3.0)
|
sprockets (>= 3.0.0)
|
||||||
sprockets (~> 2.8)
|
sqlite3 (1.3.11)
|
||||||
sshkit (1.7.1)
|
sshkit (1.8.1)
|
||||||
colorize (>= 0.7.0)
|
|
||||||
net-scp (>= 1.1.2)
|
net-scp (>= 1.1.2)
|
||||||
net-ssh (>= 2.8.0)
|
net-ssh (>= 2.8.0)
|
||||||
strip_attributes (1.5.1)
|
strip_attributes (1.7.1)
|
||||||
activemodel (>= 3.0, < 5.0)
|
activemodel (>= 3.0, < 5.0)
|
||||||
thor (0.19.1)
|
thor (0.19.1)
|
||||||
thread_safe (0.3.3)
|
thread_safe (0.3.5)
|
||||||
tilt (1.4.1)
|
tilt (2.0.2)
|
||||||
treetop (1.4.15)
|
tzinfo (1.2.2)
|
||||||
polyglot
|
|
||||||
polyglot (>= 0.3.1)
|
|
||||||
tzinfo (1.1.0)
|
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
uglifier (2.5.0)
|
uglifier (2.7.2)
|
||||||
execjs (>= 0.3.0)
|
execjs (>= 0.3.0)
|
||||||
json (>= 1.8.0)
|
json (>= 1.8.0)
|
||||||
unicorn (4.8.3)
|
unf (0.1.4)
|
||||||
|
unf_ext
|
||||||
|
unf_ext (0.0.7.1)
|
||||||
|
unicorn (5.0.1)
|
||||||
kgio (~> 2.6)
|
kgio (~> 2.6)
|
||||||
rack
|
rack
|
||||||
raindrops (~> 0.7)
|
raindrops (~> 0.7)
|
||||||
@@ -189,27 +224,31 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activerecord-session_store
|
activerecord-session_store
|
||||||
bcrypt-ruby
|
bcrypt
|
||||||
better_errors
|
better_errors
|
||||||
binding_of_caller
|
binding_of_caller
|
||||||
capistrano-bundler (~> 1.1.3)
|
capistrano-bundler (~> 1.1.3)
|
||||||
capistrano-rails (~> 1.1.2)
|
capistrano-rails (~> 1.1.2)
|
||||||
capistrano-rbenv (~> 2.0)
|
capistrano-rbenv (~> 2.0)
|
||||||
coffee-rails
|
|
||||||
highlight_js-rails!
|
highlight_js-rails!
|
||||||
hirb
|
hirb
|
||||||
jquery-rails
|
jquery-rails
|
||||||
jquery-textcomplete-rails!
|
jquery-textcomplete-rails!
|
||||||
kaminari!
|
kaminari!
|
||||||
mysql2
|
mysql2
|
||||||
rails (= 4.1.0)
|
rails!
|
||||||
rails-erd
|
rails-erd
|
||||||
rb-readline
|
rb-readline
|
||||||
redcarpet (~> 3.2.3)
|
redcarpet (~> 3.2.3)
|
||||||
rest-client
|
rest-client
|
||||||
sanitize
|
sanitize
|
||||||
sass-rails
|
sass-rails
|
||||||
|
sqlite3
|
||||||
strip_attributes
|
strip_attributes
|
||||||
|
tzinfo-data
|
||||||
uglifier
|
uglifier
|
||||||
unicorn
|
unicorn
|
||||||
webrick
|
webrick
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.11.2
|
||||||
|
|||||||
@@ -108,8 +108,8 @@ class UsersController < ApplicationController
|
|||||||
end
|
end
|
||||||
begin
|
begin
|
||||||
# these shouldn't be send in the background
|
# these shouldn't be send in the background
|
||||||
RedstonerMailer.register_mail(@user, is_idiot).deliver
|
RedstonerMailer.register_mail(@user, is_idiot).deliver_now
|
||||||
RedstonerMailer.register_info_mail(@user, is_idiot).deliver
|
RedstonerMailer.register_info_mail(@user, is_idiot).deliver_now
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.error "---"
|
Rails.logger.error "---"
|
||||||
Rails.logger.error "WARNING: registration mail failed for user #{@user.try(:name)}, #{@user.try(:email)}"
|
Rails.logger.error "WARNING: registration mail failed for user #{@user.try(:name)}, #{@user.try(:email)}"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module MailerHelper
|
|||||||
begin
|
begin
|
||||||
mails.each do |mail|
|
mails.each do |mail|
|
||||||
begin
|
begin
|
||||||
mail.deliver
|
mail.deliver_now
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.error "---"
|
Rails.logger.error "---"
|
||||||
Rails.logger.error "WARNING: '#{mail.try(:subject)}' failed for recipient #{mail.try(:to)}"
|
Rails.logger.error "WARNING: '#{mail.try(:subject)}' failed for recipient #{mail.try(:to)}"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class CreateUsers < ActiveRecord::Migration
|
|||||||
|
|
||||||
t.references :role, null: false, default: Role.get(:normal)
|
t.references :role, null: false, default: Role.get(:normal)
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -7,7 +7,7 @@ class CreateBlogposts < ActiveRecord::Migration
|
|||||||
t.references :user_author
|
t.references :user_author
|
||||||
t.references :user_editor
|
t.references :user_editor
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -7,7 +7,7 @@ class CreateComments < ActiveRecord::Migration
|
|||||||
t.references :user_editor
|
t.references :user_editor
|
||||||
t.references :blogpost
|
t.references :blogpost
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class CreateForumthreads < ActiveRecord::Migration
|
|||||||
|
|
||||||
t.references :forum
|
t.references :forum
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ class CreateSessions < ActiveRecord::Migration
|
|||||||
create_table :sessions do |t|
|
create_table :sessions do |t|
|
||||||
t.string :session_id, :null => false
|
t.string :session_id, :null => false
|
||||||
t.text :data
|
t.text :data
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index :sessions, :session_id
|
add_index :sessions, :session_id
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class CreateThreadreplies < ActiveRecord::Migration
|
|||||||
t.references :user_editor
|
t.references :user_editor
|
||||||
t.references :forumthread
|
t.references :forumthread
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
156
db/schema.rb
156
db/schema.rb
@@ -11,89 +11,89 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20150826002927) do
|
ActiveRecord::Schema.define(version: 20150825232749) do
|
||||||
|
|
||||||
create_table "blogposts", force: true do |t|
|
create_table "blogposts", force: :cascade do |t|
|
||||||
t.string "title"
|
t.string "title", limit: 255
|
||||||
t.text "content"
|
t.text "content", limit: 65535
|
||||||
t.integer "user_author_id"
|
t.integer "user_author_id", limit: 4
|
||||||
t.integer "user_editor_id"
|
t.integer "user_editor_id", limit: 4
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "comments", force: true do |t|
|
create_table "comments", force: :cascade do |t|
|
||||||
t.text "content"
|
t.text "content", limit: 65535
|
||||||
t.integer "user_author_id"
|
t.integer "user_author_id", limit: 4
|
||||||
t.integer "user_editor_id"
|
t.integer "user_editor_id", limit: 4
|
||||||
t.integer "blogpost_id"
|
t.integer "blogpost_id", limit: 4
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "forumgroups", force: true do |t|
|
create_table "forumgroups", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name", limit: 255
|
||||||
t.integer "position"
|
t.integer "position", limit: 4
|
||||||
t.integer "role_read_id"
|
t.integer "role_read_id", limit: 4
|
||||||
t.integer "role_write_id"
|
t.integer "role_write_id", limit: 4
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "forums", force: true do |t|
|
create_table "forums", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name", limit: 255
|
||||||
t.integer "position"
|
t.integer "position", limit: 4
|
||||||
t.integer "role_read_id"
|
t.integer "role_read_id", limit: 4
|
||||||
t.integer "role_write_id"
|
t.integer "role_write_id", limit: 4
|
||||||
t.integer "forumgroup_id"
|
t.integer "forumgroup_id", limit: 4
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "forums_labels", id: false, force: true do |t|
|
create_table "forums_labels", id: false, force: :cascade do |t|
|
||||||
t.integer "forum_id"
|
t.integer "forum_id", limit: 4
|
||||||
t.integer "label_id"
|
t.integer "label_id", limit: 4
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "forumthreads", force: true do |t|
|
create_table "forumthreads", force: :cascade do |t|
|
||||||
t.string "title"
|
t.string "title", limit: 255
|
||||||
t.text "content"
|
t.text "content", limit: 65535
|
||||||
t.boolean "sticky", default: false
|
t.boolean "sticky", default: false
|
||||||
t.boolean "locked", default: false
|
t.boolean "locked", default: false
|
||||||
t.integer "user_author_id"
|
t.integer "user_author_id", limit: 4
|
||||||
t.integer "user_editor_id"
|
t.integer "user_editor_id", limit: 4
|
||||||
t.integer "forum_id"
|
t.integer "forum_id", limit: 4
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.integer "label_id"
|
t.integer "label_id", limit: 4
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "info", force: true do |t|
|
create_table "info", force: :cascade do |t|
|
||||||
t.string "title"
|
t.string "title", limit: 255
|
||||||
t.text "content"
|
t.text "content", limit: 65535
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "labels", force: true do |t|
|
create_table "labels", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name", limit: 255
|
||||||
t.string "color"
|
t.string "color", limit: 255
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "register_tokens", force: true do |t|
|
create_table "register_tokens", force: :cascade do |t|
|
||||||
t.string "uuid", limit: 32, null: false
|
t.string "uuid", limit: 32, null: false
|
||||||
t.string "token", limit: 6, null: false
|
t.string "token", limit: 6, null: false
|
||||||
t.string "email", null: false
|
t.string "email", limit: 255, null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "register_tokens", ["email"], name: "index_register_tokens_on_email", unique: true, using: :btree
|
add_index "register_tokens", ["email"], name: "index_register_tokens_on_email", unique: true, using: :btree
|
||||||
add_index "register_tokens", ["uuid"], name: "index_register_tokens_on_uuid", unique: true, using: :btree
|
add_index "register_tokens", ["uuid"], name: "index_register_tokens_on_uuid", unique: true, using: :btree
|
||||||
|
|
||||||
create_table "roles", force: true do |t|
|
create_table "roles", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name", limit: 255
|
||||||
t.integer "value"
|
t.integer "value", limit: 4
|
||||||
t.string "color"
|
t.string "color", limit: 255
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "sessions", force: true do |t|
|
create_table "sessions", force: :cascade do |t|
|
||||||
t.string "session_id", null: false
|
t.string "session_id", limit: 255, null: false
|
||||||
t.text "data"
|
t.text "data", limit: 65535
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
@@ -101,40 +101,40 @@ ActiveRecord::Schema.define(version: 20150826002927) do
|
|||||||
add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", using: :btree
|
add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", using: :btree
|
||||||
add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
|
add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
|
||||||
|
|
||||||
create_table "threadreplies", force: true do |t|
|
create_table "threadreplies", force: :cascade do |t|
|
||||||
t.text "content"
|
t.text "content", limit: 65535
|
||||||
t.integer "user_author_id"
|
t.integer "user_author_id", limit: 4
|
||||||
t.integer "user_editor_id"
|
t.integer "user_editor_id", limit: 4
|
||||||
t.integer "forumthread_id"
|
t.integer "forumthread_id", limit: 4
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "users", force: true do |t|
|
create_table "users", force: :cascade do |t|
|
||||||
t.string "uuid", null: false
|
t.string "uuid", limit: 255, null: false
|
||||||
t.string "name", null: false
|
t.string "name", limit: 255, null: false
|
||||||
t.string "password_digest", null: false
|
t.string "password_digest", limit: 255, null: false
|
||||||
t.string "ign", null: false
|
t.string "ign", limit: 255, null: false
|
||||||
t.string "email", null: false
|
t.string "email", limit: 255, null: false
|
||||||
t.text "about"
|
t.text "about", limit: 65535
|
||||||
t.string "last_ip"
|
t.string "last_ip", limit: 255
|
||||||
t.string "skype"
|
t.string "skype", limit: 255
|
||||||
t.boolean "skype_public", default: false
|
t.boolean "skype_public", default: false
|
||||||
t.string "youtube"
|
t.string "youtube", limit: 255
|
||||||
t.string "youtube_channelname"
|
t.string "youtube_channelname", limit: 255
|
||||||
t.string "twitter"
|
t.string "twitter", limit: 255
|
||||||
t.boolean "donor", default: false
|
t.boolean "donor", default: false
|
||||||
t.string "email_token"
|
t.string "email_token", limit: 255
|
||||||
t.boolean "confirmed", default: false
|
t.boolean "confirmed", default: false
|
||||||
t.datetime "last_seen"
|
t.datetime "last_seen"
|
||||||
t.integer "role_id", null: false
|
t.integer "role_id", limit: 4, null: false
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.boolean "mail_own_thread_reply", default: true
|
t.boolean "mail_own_thread_reply", default: true
|
||||||
t.boolean "mail_other_thread_reply", default: true
|
t.boolean "mail_other_thread_reply", default: true
|
||||||
t.boolean "mail_own_blogpost_comment", default: true
|
t.boolean "mail_own_blogpost_comment", default: true
|
||||||
t.boolean "mail_other_blogpost_comment", default: true
|
t.boolean "mail_other_blogpost_comment", default: true
|
||||||
t.boolean "mail_mention", default: true
|
t.boolean "mail_mention", default: true
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||||
|
|||||||
Reference in New Issue
Block a user