Skip to content

Commit

Permalink
Add production guard
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD committed Nov 7, 2024
1 parent 48ed7e2 commit 49ba777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/migrate/20241107133957_update_bootcamp_data_fields.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class UpdateBootcampDataFields < ActiveRecord::Migration[7.0]
def change
return if Rails.env.production?

change_column_null :user_bootcamp_data, :user_id, true
add_column :user_bootcamp_data, :checkout_session_id, :string
end
Expand Down

0 comments on commit 49ba777

Please sign in to comment.