From 7c5e58cae032d44fc194982fd16998faf1941f95 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Tue, 12 Sep 2023 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=E6=84=9F=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20211115014133_create_claims.rb | 11 +++++++++++ db/migrate/20211119135526_add_note_to_claim.rb | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 db/migrate/20211115014133_create_claims.rb create mode 100644 db/migrate/20211119135526_add_note_to_claim.rb diff --git a/db/migrate/20211115014133_create_claims.rb b/db/migrate/20211115014133_create_claims.rb new file mode 100644 index 000000000..f79102433 --- /dev/null +++ b/db/migrate/20211115014133_create_claims.rb @@ -0,0 +1,11 @@ +class CreateClaims < ActiveRecord::Migration[5.2] + def change + create_table :claims do |t| + t.integer :issue_id + t.integer :user_id + t.timestamps + t.index :issue_id + t.index :user_id + end + end +end diff --git a/db/migrate/20211119135526_add_note_to_claim.rb b/db/migrate/20211119135526_add_note_to_claim.rb new file mode 100644 index 000000000..9a1a8e969 --- /dev/null +++ b/db/migrate/20211119135526_add_note_to_claim.rb @@ -0,0 +1,5 @@ +class AddNoteToClaim < ActiveRecord::Migration[5.2] + def change + add_column :claims, :note, :text + end +end