Sha256: d107313755463401bfdf5bfef01307b070732351d78092b4436fb28b2700dfc7

Contents?: true

Size: 455 Bytes

Versions: 71

Compression:

Stored size: 455 Bytes

Contents

class CreateTaskFiles < ActiveRecord::Migration
  def self.up
    add_column :tasks, :notes, :text

    create_table :task_files do |t|
      t.column :task_id, :integer, :null => false
      t.column :name, :string, :limit => 64, :null => false
      t.column :content_type, :string, :null => false
      t.column :content_data, :binary, :null => false
    end
  end

  def self.down
    drop_table :task_files
    remove_column :tasks, :notes
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
backlog-0.37.2 db/migrate/020_create_task_files.rb
backlog-0.37.1 db/migrate/020_create_task_files.rb
backlog-0.36.2 db/migrate/020_create_task_files.rb
backlog-0.10.0 db/migrate/020_create_task_files.rb
backlog-0.10.1 db/migrate/020_create_task_files.rb
backlog-0.10.4 db/migrate/020_create_task_files.rb
backlog-0.10.2 db/migrate/020_create_task_files.rb
backlog-0.10.5 db/migrate/020_create_task_files.rb
backlog-0.10.3 db/migrate/020_create_task_files.rb
backlog-0.10.6 db/migrate/020_create_task_files.rb
backlog-0.10.7 db/migrate/020_create_task_files.rb
backlog-0.10.8 db/migrate/020_create_task_files.rb
backlog-0.11.0 db/migrate/020_create_task_files.rb
backlog-0.12.0 db/migrate/020_create_task_files.rb
backlog-0.12.2 db/migrate/020_create_task_files.rb
backlog-0.12.1 db/migrate/020_create_task_files.rb
backlog-0.12.4 db/migrate/020_create_task_files.rb
backlog-0.12.3 db/migrate/020_create_task_files.rb
backlog-0.13.0 db/migrate/020_create_task_files.rb
backlog-0.14.0 db/migrate/020_create_task_files.rb