* Removed unapprovals, added post flags and post appeals (still need to update tests)
* Restyled text
This commit is contained in:
19
db/migrate/20110328215652_create_post_flags.rb
Normal file
19
db/migrate/20110328215652_create_post_flags.rb
Normal 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
|
||||
Reference in New Issue
Block a user