added limit methods to user, more work on post views

This commit is contained in:
albert
2010-03-12 15:18:30 -05:00
parent 9f29ffc8c3
commit 9eb578927c
18 changed files with 282 additions and 108 deletions

View File

@@ -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

View File

@@ -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