diff --git a/db/migrate/002_create_recurring_items.rb b/db/migrate/002_create_recurring_items.rb index 05eccb00f18a0f29353ce61977c55f0aa11c0f5c..e1c51cc66d6e3ecb99c7a2015672532e5f117f34 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