Fixed minor bugs in migrations

pull/6827/head
Sebastian Schuster 11 years ago
parent 34d53392fd
commit 18be065948
  1. 3
      db/migrate/20121022124254_aggregated_costs_migrations.rb
  2. 4
      db/migrate/20130916094369_legacy_issues_costs_data_to_work_packages.rb
  3. 4
      db/migrate/20130918180542_legacy_variable_cost_object_journal_data.rb

@ -3,9 +3,6 @@ require 'open_project/plugins/migration_mapping'
# This migration aggregates the migrations detailed in MIGRATION_FILES
class AggregatedCostsMigrations < ActiveRecord::Migration
class IncompleteMigrationsError < ::StandardError
end
def initialize
super
@issues_table_exists = ActiveRecord::Base.connection.tables.include? 'issues'

@ -9,9 +9,9 @@
# See doc/COPYRIGHT.rdoc for more details.
#++
require_relative 'migration_utils/utils'
require Rails.root.join("db","migrate","migration_utils","utils").to_s
class LegacyIssuesToWorkPackages < ActiveRecord::Migration
class LegacyIssuesCostsDataToWorkPackages < ActiveRecord::Migration
def up
execute <<-SQL

@ -19,9 +19,9 @@
#++
#
require_relative 'migration_utils/legacy_journal_migrator'
require Rails.root.join("db","migrate","migration_utils","legacy_journal_migrator").to_s
class LegacyVariableCostObjectData < ActiveRecord::Migration
class LegacyVariableCostObjectJournalData < ActiveRecord::Migration
def up
migrator.run

Loading…
Cancel
Save