* Implement is_status_locked on posts

This commit is contained in:
albert
2011-10-30 02:00:33 -04:00
parent 4235f0ecb3
commit be9e559fb1
5 changed files with 149 additions and 11 deletions

View File

@@ -2319,6 +2319,7 @@ CREATE TABLE posts (
rating character(1) DEFAULT 'q'::bpchar NOT NULL,
is_note_locked boolean DEFAULT false NOT NULL,
is_rating_locked boolean DEFAULT false NOT NULL,
is_status_locked boolean DEFAULT false NOT NULL,
is_pending boolean DEFAULT false NOT NULL,
is_flagged boolean DEFAULT false NOT NULL,
is_deleted boolean DEFAULT false NOT NULL,

View File

@@ -13,6 +13,7 @@ class CreatePosts < ActiveRecord::Migration
# Statuses
t.column :is_note_locked, :boolean, :null => false, :default => false
t.column :is_rating_locked, :boolean, :null => false, :default => false
t.column :is_status_locked, :boolean, :null => false, :default => false
t.column :is_pending, :boolean, :null => false, :default => false
t.column :is_flagged, :boolean, :null => false, :default => false
t.column :is_deleted, :boolean, :null => false, :default => false