Sha256: 87c8bb9dbc3afd75e532acd050ac846324d4afaf86b38ddb6c17469542dc2d17

Contents?: true

Size: 600 Bytes

Versions: 66

Compression:

Stored size: 600 Bytes

Contents

class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :backlogs do |table|
      table.column :name,  :string, :limit => 32, :null => false
    end
  
    create_table :tasks do |table|
      table.column :position,  :integer, :null => true
      table.column :description, :string, :limit => 80, :null => false
      table.column :assigned_to, :integer
      table.column :estimate, :time
      table.column :finished_at, :datetime
      table.column :backlog_id, :integer, :null => false
    end
  end

  def self.down
    drop_table :tasks
    drop_table :backlogs
  end

end

Version data entries

66 entries across 66 versions & 1 rubygems

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