Skip to content

Commit

Permalink
[#377] Delete old fields from database
Browse files Browse the repository at this point in the history
  • Loading branch information
antlu committed Feb 6, 2023
1 parent b7e9ab6 commit 8b59e35
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DeleteObsoleteFieldsFromRepo < ActiveRecord::Migration[6.1]
def change
remove_columns :uffizzi_core_repos, :deploy_preview_when_pull_request_is_opened, :delete_preview_when_pull_request_is_closed, type: :boolean
end
end
4 changes: 1 addition & 3 deletions core/test/dummy/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: 2022_09_27_113647) do
ActiveRecord::Schema.define(version: 2023_02_03_071725) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -331,8 +331,6 @@
t.string "dockerfile_path"
t.jsonb "args"
t.string "dockerfile_context_path"
t.boolean "deploy_preview_when_pull_request_is_opened"
t.boolean "delete_preview_when_pull_request_is_closed"
t.boolean "deploy_preview_when_image_tag_is_created"
t.boolean "delete_preview_when_image_tag_is_updated"
t.boolean "share_to_github"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This migration comes from uffizzi_core (originally 20230203071725)
class DeleteObsoleteFieldsFromRepo < ActiveRecord::Migration[6.1]
def change
remove_columns :uffizzi_core_repos, :deploy_preview_when_pull_request_is_opened, :delete_preview_when_pull_request_is_closed, type: :boolean
end
end
4 changes: 1 addition & 3 deletions 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: 2022_09_27_113647) do
ActiveRecord::Schema.define(version: 2023_02_03_134111) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -331,8 +331,6 @@
t.string "dockerfile_path"
t.jsonb "args"
t.string "dockerfile_context_path"
t.boolean "deploy_preview_when_pull_request_is_opened"
t.boolean "delete_preview_when_pull_request_is_closed"
t.boolean "deploy_preview_when_image_tag_is_created"
t.boolean "delete_preview_when_image_tag_is_updated"
t.boolean "share_to_github"
Expand Down

0 comments on commit 8b59e35

Please sign in to comment.