Skip to content
Snippets Groups Projects
Commit 6cf2ebc9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Create recurring items

parent 50284bff
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment