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.14.2 db/migrate/001_create_tasks.rb
backlog-0.14.3 db/migrate/001_create_tasks.rb
backlog-0.14.1 db/migrate/001_create_tasks.rb
backlog-0.15.0 db/migrate/001_create_tasks.rb
backlog-0.14.4 db/migrate/001_create_tasks.rb
backlog-0.16.0 db/migrate/001_create_tasks.rb
backlog-0.15.1 db/migrate/001_create_tasks.rb
backlog-0.17.0 db/migrate/001_create_tasks.rb
backlog-0.17.1 db/migrate/001_create_tasks.rb
backlog-0.17.2 db/migrate/001_create_tasks.rb
backlog-0.17.3 db/migrate/001_create_tasks.rb
backlog-0.17.4 db/migrate/001_create_tasks.rb
backlog-0.17.5 db/migrate/001_create_tasks.rb
backlog-0.17.6 db/migrate/001_create_tasks.rb
backlog-0.18.0 db/migrate/001_create_tasks.rb
backlog-0.19.0 db/migrate/001_create_tasks.rb
backlog-0.20.0 db/migrate/001_create_tasks.rb
backlog-0.20.1 db/migrate/001_create_tasks.rb
backlog-0.21.0 db/migrate/001_create_tasks.rb
backlog-0.21.2 db/migrate/001_create_tasks.rb