Created Deliverable model and tables. #1135
This commit is contained in:
1 parent
24ed0f6385
commit
00f8b19acf
3 files changed
+26
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
class Deliverable < ActiveRecord::Base
|
||||||
|
end
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
class CreateDeliverables < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
create_table :deliverables do |t|
|
||||||
|
t.column :subject, :string
|
||||||
|
t.column :due_date, :date
|
||||||
|
t.column :description, :text
|
||||||
|
t.column :type, :string
|
||||||
|
t.column :cost, :decimal
|
||||||
|
t.column :project_manager_signoff, :boolean, :default => false
|
||||||
|
t.column :client_signoff, :boolean, :default => false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
drop_table :deliverables
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
require File.dirname(__FILE__) + '/../spec_helper'
|
||||||
|
|
||||||
|
describe Deliverable do
|
||||||
|
it "should be valid" do
|
||||||
|
Deliverable.new.should be_valid
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in new issue
Block a user