add the claim mechanism

This commit is contained in:
starlee
2021-11-17 21:48:59 +08:00
parent d63626424e
commit e25e2fdd77
8 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
ails db:migrateclass 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

View File

@@ -0,0 +1,5 @@
class AddNoteToClaim < ActiveRecord::Migration[5.2]
def change
add_column :claims, :note, :text
end
end