Project

General

Profile

Feature #1176 » 20120214222640_create_issue_schedules.rb

Preethi Sriram, 2012-03-19 22:35

 
1
class CreateIssueSchedules < ActiveRecord::Migration
2
  def self.up
3
    create_table :issue_schedules do |t|
4
      t.integer :project_id
5
      t.integer :tracker_id
6
      t.integer :issue_id
7
      t.integer :assigned_to_id
8
      t.integer :author_id
9
      t.string :subject
10
      t.integer :interval_number
11
      t.string :interval_units
12
      t.datetime :last_assigned_date
13
      t.datetime :next_run_date
14

    
15
      t.timestamps
16
    end
17
  end
18

    
19
  def self.down
20
    drop_table :issue_schedules
21
  end
22
end
(2-2/2)