added post mod details
This commit is contained in:
@@ -6,6 +6,7 @@ class CreateTags < ActiveRecord::Migration
|
||||
t.column :view_count, :integer, :null => false, :default => 0
|
||||
t.column :category, :integer, :null => false, :default => 0
|
||||
t.column :related_tags, :text
|
||||
t.column :related_tags_updated_at, :datetime
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
|
||||
16
db/migrate/20100221012656_create_jobs.rb
Normal file
16
db/migrate/20100221012656_create_jobs.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateJobs < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :jobs do |t|
|
||||
t.column :category, :string, :null => false
|
||||
t.column :status, :string, :null => false
|
||||
t.column :message, :text, :null => false
|
||||
t.column :data_as_json, :text, :null => false
|
||||
t.column :repeat_count, :integer, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :jobs
|
||||
end
|
||||
end
|
||||
16
db/migrate/20100223001012_create_post_moderation_details.rb
Normal file
16
db/migrate/20100223001012_create_post_moderation_details.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreatePostModerationDetails < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :post_moderation_details do |t|
|
||||
t.column :user_id, :integer, :null => false
|
||||
t.column :post_id, :integer, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :post_moderation_details, :user_id
|
||||
add_index :post_moderation_details, :post_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :post_moderation_details
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user