added limit methods to user, more work on post views
This commit is contained in:
@@ -770,7 +770,6 @@ CREATE TABLE janitor_trials (
|
||||
id integer NOT NULL,
|
||||
user_id integer NOT NULL,
|
||||
promoted_at timestamp without time zone,
|
||||
original_level integer NOT NULL,
|
||||
created_at timestamp without time zone,
|
||||
updated_at timestamp without time zone
|
||||
);
|
||||
@@ -1411,6 +1410,7 @@ CREATE TABLE users (
|
||||
is_janitor boolean DEFAULT false NOT NULL,
|
||||
is_moderator boolean DEFAULT false NOT NULL,
|
||||
is_admin boolean DEFAULT false NOT NULL,
|
||||
base_upload_limit integer DEFAULT 10 NOT NULL,
|
||||
last_logged_in_at timestamp without time zone,
|
||||
last_forum_read_at timestamp without time zone,
|
||||
has_mail boolean DEFAULT false NOT NULL,
|
||||
|
||||
@@ -14,6 +14,7 @@ class CreateUsers < ActiveRecord::Migration
|
||||
t.column :is_janitor, :boolean, :null => false, :default => false
|
||||
t.column :is_moderator, :boolean, :null => false, :default => false
|
||||
t.column :is_admin, :boolean, :null => false, :default => false
|
||||
t.column :base_upload_limit, :integer, :null => false, :default => 10
|
||||
|
||||
# Cached data
|
||||
t.column :last_logged_in_at, :datetime
|
||||
|
||||
@@ -3,7 +3,6 @@ class CreateJanitorTrials < ActiveRecord::Migration
|
||||
create_table :janitor_trials do |t|
|
||||
t.column :user_id, :integer, :null => false
|
||||
t.column :promoted_at, :datetime
|
||||
t.column :original_level, :integer, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user