From 6cf2ebc92465cddecbc0746688febd1c6f52ab94 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Wed, 9 Aug 2006 21:25:51 +0000
Subject: [PATCH] Create recurring items

---
 db/migrate/002_create_recurring_items.rb | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/db/migrate/002_create_recurring_items.rb b/db/migrate/002_create_recurring_items.rb
index 05eccb0..e1c51cc 100644
--- a/db/migrate/002_create_recurring_items.rb
+++ b/db/migrate/002_create_recurring_items.rb
@@ -1,7 +1,15 @@
 class CreateRecurringItems < ActiveRecord::Migration
   def self.up
-    create_table :recurring_items do |t|
-      # t.column :name, :string
+    create_table (:recurring_items,
+		  :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8') do |t|
+      t.column :description, :string
+      t.column :amount, :integer
+      t.column :startdate, :date
+      t.column :enddate, :date
+      t.column :schedule_id, :integer
+
+      t.column :created_on, :timestamp
+      t.column :updated_on, :timestamp
     end
   end
 
-- 
GitLab