Skip to content

Commit

Permalink
added files for date (start,end,deadline) and relations to other modu…
Browse files Browse the repository at this point in the history
…les (accounts, contacts)

first revision that can create proposals properly and display them in list view
  • Loading branch information
ingojaeckel committed Nov 3, 2009
1 parent 831e2f0 commit 96cdd22
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions db/migrate/030_add_non_ffc_fields_to_proposals.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class AddNonFfcFieldsToProposals < ActiveRecord::Migration
def self.up
add_column :proposals, :abbreviation, :string, :default => "WEB"
add_column :proposals, :state, :string, :default => "draft"
add_column :proposals, :deadline, :date
# references to other modules (account and contacts)
add_column :proposals, :client_account_id, :integer
add_column :proposals, :client_contact_id, :integer
add_column :proposals, :client_technical_contact_id, :integer
add_column :proposals, :employee_contact_id, :integer
add_column :proposals, :employee_technical_contact_id, :integer
end

def self.down
remove_column :proposals, :abbreviation, :string
remove_column :proposals, :state, :string
remove_column :proposals, :deadline, :date

remove_column :proposals, :client_account_id, :integer
remove_column :proposals, :client_contact_id, :integer
remove_column :proposals, :client_technical_contact_id, :integer
remove_column :proposals, :employee_contact_id, :integer
remove_column :proposals, :employee_technical_contact_id, :integer
end
end

0 comments on commit 96cdd22

Please sign in to comment.