1
0

Added Goal model and preliminary Targets index

This commit is contained in:
cryptogopher
2020-06-25 03:56:49 +02:00
parent 8240e5e868
commit 1dd2e2b596
18 changed files with 149 additions and 14 deletions

View File

@@ -93,6 +93,13 @@ class CreateSchema < ActiveRecord::Migration
t.timestamps null: false
end
create_table :goals do |t|
t.references :project
t.string :name
t.text :description
t.timestamps null: false
end
create_table :targets do |t|
t.references :goal
t.references :item, polymorphic: true