Skip to content

Commit

Permalink
[#377] Restore columns, but rename
Browse files Browse the repository at this point in the history
  • Loading branch information
antlu committed Feb 6, 2023
1 parent 0c9445b commit 6c91b14
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class RenameObsoleteFieldsInRepo < ActiveRecord::Migration[6.1]
def change
rename_column :uffizzi_core_repos, :deploy_preview_when_pull_request_is_opened, :deprecated_deploy_preview_when_pull_request_is_opened
rename_column :uffizzi_core_repos, :delete_preview_when_pull_request_is_closed, :deprecated_delete_preview_when_pull_request_is_closed
end
end
2 changes: 2 additions & 0 deletions core/test/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@
t.boolean "share_to_github"
t.integer "delete_preview_after"
t.string "tag_pattern_deprecated"
t.boolean "deprecated_deploy_preview_when_pull_request_is_opened"
t.boolean "deprecated_delete_preview_when_pull_request_is_closed"
t.index ["project_id"], name: "index_repos_on_project_id"
end

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This migration comes from uffizzi_core (originally 20230203071725)
class RenameObsoleteFieldsInRepo < ActiveRecord::Migration[6.1]
def change
rename_column :uffizzi_core_repos, :deploy_preview_when_pull_request_is_opened, :deprecated_deploy_preview_when_pull_request_is_opened
rename_column :uffizzi_core_repos, :delete_preview_when_pull_request_is_closed, :deprecated_delete_preview_when_pull_request_is_closed
end
end
4 changes: 3 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2023_02_03_134111) do
ActiveRecord::Schema.define(version: 2023_02_06_143239) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -336,6 +336,8 @@
t.boolean "share_to_github"
t.integer "delete_preview_after"
t.string "tag_pattern_deprecated"
t.boolean "deprecated_deploy_preview_when_pull_request_is_opened"
t.boolean "deprecated_delete_preview_when_pull_request_is_closed"
t.index ["project_id"], name: "index_repos_on_project_id"
end

Expand Down

0 comments on commit 6c91b14

Please sign in to comment.