Added Goal model and preliminary Targets index
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user