diff --git a/app/helpers/articles_helper.rb b/app/helpers/articles_helper.rb new file mode 100644 index 0000000..2968277 --- /dev/null +++ b/app/helpers/articles_helper.rb @@ -0,0 +1,2 @@ +module ArticlesHelper +end diff --git a/app/models/project.rb b/app/models/project.rb index 9c7fe3f..16ed525 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1,2 +1,3 @@ class Project < ApplicationRecord + has_many :tasks end diff --git a/app/models/task.rb b/app/models/task.rb index 3c23424..1d95805 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -1,2 +1,3 @@ class Task < ApplicationRecord + balongs_to :project end diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb new file mode 100644 index 0000000..ab9c552 --- /dev/null +++ b/app/views/articles/index.html.erb @@ -0,0 +1,2 @@ +

Articles#index

+

Find me in app/views/articles/index.html.erb

diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..2e3d7dd --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,26 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema[8.1].define(version: 2026_01_26_072814) do + create_table "projects", force: :cascade do |t| + t.datetime "created_at", null: false + t.string "project_name" + t.datetime "updated_at", null: false + end + + create_table "tasks", force: :cascade do |t| + t.datetime "created_at", null: false + t.string "status" + t.string "title" + t.datetime "updated_at", null: false + end +end