Added resetting column informations

pull/6827/head
Sebastian Schuster 11 years ago
parent 4f334b05c0
commit 46c13f23cd
  1. 2
      db/migrate/20121022124254_aggregated_costs_migrations.rb
  2. 1
      db/migrate/20130529145329_remove_signoff_from_cost_objects.rb
  3. 2
      db/migrate/20130625094710_add_costs_column_to_work_package.rb
  4. 1
      db/migrate/20130918084919_add_cost_object_id_to_work_package_journals.rb
  5. 1
      db/migrate/20130918160542_add_journal_columns_to_time_entry_journals.rb

@ -122,7 +122,6 @@ class AggregatedCostsMigrations < ActiveRecord::Migration
change_table "issues" do |t|
t.column :cost_object_id, :integer, :null => true
end
Issue.reset_column_information
end
change_table "time_entries" do |t|
@ -144,7 +143,6 @@ class AggregatedCostsMigrations < ActiveRecord::Migration
drop_table "rates"
if @issues_table_exists
remove_column :issues, :cost_object_id
Issue.reset_column_information
end
change_table "time_entries" do |t|

@ -2,5 +2,6 @@ class RemoveSignoffFromCostObjects < ActiveRecord::Migration
def change
remove_column :cost_objects, :project_manager_signoff
remove_column :cost_objects, :client_signoff
CostObject.reset_column_information
end
end

@ -1,7 +1,9 @@
class AddCostsColumnToWorkPackage < ActiveRecord::Migration
def change
add_column :work_packages, :cost_object_id, :integer
WorkPackage.reset_column_information
rename_column :cost_entries, :issue_id, :work_package_id
CostEntry.reset_column_information
end
end

@ -1,5 +1,6 @@
class AddCostObjectIdToWorkPackageJournals < ActiveRecord::Migration
def change
add_column :work_package_journals, :cost_object_id, :integer, null: true
WorkPackageJournal.reset_column_information
end
end

@ -3,5 +3,6 @@ class AddJournalColumnsToTimeEntryJournals < ActiveRecord::Migration
add_column :time_entry_journals, :overridden_costs, :decimal, :precision => 15, :scale => 2, :null => true
add_column :time_entry_journals, :costs, :decimal, :precision => 15, :scale => 2, :null => true
add_column :time_entry_journals, :rate_id, :integer
TimeEntryJournal.reset_column_information
end
end

Loading…
Cancel
Save