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