migrated db and defined Proj & Task relationship
This commit is contained in:
2
app/helpers/articles_helper.rb
Normal file
2
app/helpers/articles_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module ArticlesHelper
|
||||
end
|
||||
@@ -1,2 +1,3 @@
|
||||
class Project < ApplicationRecord
|
||||
has_many :tasks
|
||||
end
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
class Task < ApplicationRecord
|
||||
balongs_to :project
|
||||
end
|
||||
|
||||
2
app/views/articles/index.html.erb
Normal file
2
app/views/articles/index.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1>Articles#index</h1>
|
||||
<p>Find me in app/views/articles/index.html.erb</p>
|
||||
Reference in New Issue
Block a user