Sha256: 3fc0a83f535abee1e38cfcdc22c2dd013593ccc8bd48816421877b52ade57671

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 Bytes

Contents

class CreateTasks < ActiveRecord::Migration
  def change
    create_table   :tasks do |t|
      t.string     :name, limit: 150
      t.references :interested, :polymorphic => true
      t.references :contact, :polymorphic => true
      t.datetime   :due_time
      t.datetime   :finish_time
      t.text	     :notes
      t.string     :description, :limit => 1000
      
      t.integer	:user_id
      t.integer	:status_id
      t.integer :type_id
      t.integer :assigned_id
      t.integer :resolution_id
      
      t.timestamps
    end
    
    add_index :tasks, [:interested_id, :interested_type]
    add_index :tasks, :status_id
    add_index :tasks, :assigned_id
    add_index :tasks, :type_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 db/migrate/20120621100618_create_tasks.rb
guara-0.0.1.rc db/migrate/20120621100618_create_tasks.rb