Skip to content

Commit

Permalink
Add migration to update constituencies end date
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhian Lewis committed Jun 11, 2024
1 parent d9c7985 commit 2560da0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions db/migrate/20240611085936_add_end_date_to_constituencies.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class AddEndDateToConstituencies < ActiveRecord::Migration[7.1]
def change
up_only do
Constituency.update_all(end_date: "2024/05/30")
FetchConstituenciesJob.perform_now
end
end
end
2 changes: 1 addition & 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[7.1].define(version: 2024_05_31_162307) do
ActiveRecord::Schema[7.1].define(version: 2024_06_11_085936) do
# These are extensions that must be enabled in order to support this database
enable_extension "intarray"
enable_extension "plpgsql"
Expand Down

0 comments on commit 2560da0

Please sign in to comment.