Sha256: 29289252d197556adac18d9161d2d8b4ab4851d51c377354e0abfeb69f418af7
Contents?: true
Size: 507 Bytes
Versions: 4
Compression:
Stored size: 507 Bytes
Contents
class AddEstimationPoints < ActiveRecord::Migration def self.up create_table :works do |table| table.column :task_id, :integer, :null => false table.column :todo, :integer, :null => false table.column :hours, :integer, :null => false table.column :completed_at, :datetime, :null => false end add_column :tasks, :initial_estimate, :integer, :null => false, :default => 1 end def self.down drop_table :works remove_column :tasks, :initial_estimate end end
Version data entries
4 entries across 4 versions & 1 rubygems