Sha256: 9702926e9a6baf92235784ae3678ecf093b2b704f13860d366ce6b8e1c91d382

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

class Tasks < ActiveRecord::Migration
  def self.up
    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
    end
  end

  def self.down
    drop_table :tasks
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
backlog-0.0.0 db/migrate/001_tasks.rb
backlog-0.0.1 db/migrate/001_tasks.rb
backlog-0.0.2 db/migrate/001_tasks.rb
backlog-0.0.4 db/migrate/001_tasks.rb