Sha256: 9d746693b1b2ea31f6f6de95717e0b3b884106341d3337808de70cbc593a11d6

Contents?: true

Size: 760 Bytes

Versions: 16

Compression:

Stored size: 760 Bytes

Contents

class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks, :force => true do |t|
      t.string      :uuid, :limit => 36
      t.references  :user
      t.integer     :assigned_to
      t.integer     :completed_by
      t.string      :name, :null => false, :default => ""
      t.references  :asset, :polymorphic => true
      t.string      :priority, :limit => 32
      t.string      :category, :limit => 32
      t.string      :bucket, :limit => 32
      t.datetime    :due_at
      t.datetime    :completed_at
      t.datetime    :deleted_at
      t.timestamps
    end

    add_index :tasks, [ :user_id, :name, :deleted_at ], :unique => true
    add_index :tasks, :assigned_to
  end

  def self.down
    drop_table :tasks
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.13.5 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.13.4 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.13.3 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.13.2 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.12.3 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.12.2 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.13.1 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.12.1 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.13.0 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.12.0 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.11.4 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.11.3 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.11.2 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.11.1 db/migrate/20100928030612_create_tasks.rb
fat_free_crm-0.11.0 db/migrate/20100928030612_create_tasks.rb