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