* Removed unapprovals, added post flags and post appeals (still need to update tests)

* Restyled text
This commit is contained in:
albert
2011-03-28 18:48:02 -04:00
parent 42627be1d3
commit f9c961cdc6
66 changed files with 642 additions and 403 deletions

View File

@@ -1,17 +0,0 @@
class CreateUnapprovals < ActiveRecord::Migration
def self.up
create_table :unapprovals do |t|
t.column :post_id, :integer, :null => false
t.column :reason, :text
t.column :unapprover_id, :integer, :null => false
t.column :unapprover_ip_addr, "inet", :null => false
t.timestamps
end
add_index :unapprovals, :post_id
end
def self.down
drop_table :unapprovals
end
end

View File

@@ -0,0 +1,19 @@
class CreatePostFlags < ActiveRecord::Migration
def self.up
create_table :post_flags do |t|
t.column :post_id, :integer, :null => false
t.column :creator_id, :integer, :null => false
t.column :creator_ip_addr, :inet, :null => false
t.column :reason, :text
t.timestamps
end
add_index :post_flags, :post_id
add_index :post_flags, :creator_id
add_index :post_flags, :creator_ip_addr
end
def self.down
drop_table :post_flags
end
end

View File

@@ -0,0 +1,19 @@
class CreatePostAppeals < ActiveRecord::Migration
def self.up
create_table :post_appeals do |t|
t.column :post_id, :integer, :null => false
t.column :creator_id, :integer, :null => false
t.column :creator_ip_addr, :integer, :null => false
t.column :reason, :text
t.timestamps
end
add_index :post_appeals, :post_id
add_index :post_appeals, :creator_id
add_index :post_appeals, :creator_ip_addr
end
def self.down
drop_table :post_appeals
end
end