From f928785bc7b4e4108197959171b3420de8147f2e Mon Sep 17 00:00:00 2001 From: kaustubhDsarathi Date: Wed, 8 Jan 2025 17:25:10 +0530 Subject: [PATCH 1/2] Add db patch to update column type --- .../006_change_github_id_to_bigint_in_pull_requests.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb diff --git a/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb b/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb new file mode 100644 index 0000000..445bc3c --- /dev/null +++ b/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb @@ -0,0 +1,5 @@ +class ChangeGithubIdToBigintInPullRequests < Rails.version < '5.1' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2] + def change + change_column :pull_requests, :github_id, :bigint, null: false + end +end \ No newline at end of file From 581ad1b32cc9acfb542a962e438cbf385a4f5364 Mon Sep 17 00:00:00 2001 From: kaustubhDsarathi Date: Wed, 8 Jan 2025 17:40:54 +0530 Subject: [PATCH 2/2] Added EOL character --- db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb b/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb index 445bc3c..56fa54b 100644 --- a/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb +++ b/db/migrate/006_change_github_id_to_bigint_in_pull_requests.rb @@ -2,4 +2,4 @@ class ChangeGithubIdToBigintInPullRequests < Rails.version < '5.1' ? ActiveRecor def change change_column :pull_requests, :github_id, :bigint, null: false end -end \ No newline at end of file +end