added rake task to clear and re-seed the database on schedule

This commit is contained in:
Mike Kelley
2011-12-28 15:38:08 -07:00
parent ffcb2bb0b9
commit 61c9ddf2c3
3 changed files with 19 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
class CreatePostsTable < ActiveRecord::Migration
def self.up
create_table :posts, :force => true do |t|
t.text :body
t.text :body
t.integer :forum_id
t.integer :topic_id
t.integer :user_id