Project

General

Profile

Download (1.04 KB) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / db / migrate / 20150318141859_rename_tables.rb @ be52ca64

1
class RenameTables < ActiveRecord::Migration
2
  def up
3
    rename_table :integration_jobs, :foreman_pipeline_jobs
4
    rename_table :integration_jenkins_users, :foreman_pipeline_jenkins_users
5
    rename_table :integration_jenkins_instances, :foreman_pipeline_jenkins_instances
6
    rename_table :integration_jenkins_project_params, :foreman_pipeline_jenkins_project_params
7
    rename_table :integration_jenkins_projects, :foreman_pipeline_jenkins_projects
8
    rename_table :integration_job_jenkins_projects, :foreman_pipeline_job_jenkins_projects
9
  end
10

    
11
  def down
12
    rename_table :foreman_pipeline_jobs, :integration_jobs
13
    rename_table :foreman_pipeline_jenkins_users, :integration_jenkins_users
14
    rename_table :foreman_pipeline_jenkins_instances, :integration_jenkins_instances
15
    rename_table :foreman_pipeline_jenkins_project_params, :integration_jenkins_project_params
16
    rename_table :foreman_pipeline_jenkins_projects, :integration_jenkins_projects
17
    rename_table :foreman_pipeline_job_jenkins_projects, :integration_job_jenkins_projects
18
  end
19
end