From a268a8c7bfed0e0083675d1d80225f66a8312808 Mon Sep 17 00:00:00 2001 From: Nathan Esquenazi Date: Sun, 12 Oct 2008 02:43:00 -0700 Subject: [PATCH] generated skeleton for tasks_controller and task model --- app/controllers/tasks_controller.rb | 2 ++ app/helpers/tasks_helper.rb | 2 ++ app/models/task.rb | 2 ++ app/views/tasks/.gitignore | 0 db/migrate/20081012094223_create_tasks.rb | 12 ++++++++++++ test/fixtures/tasks.yml | 7 +++++++ test/functional/tasks_controller_test.rb | 8 ++++++++ test/unit/task_test.rb | 8 ++++++++ 8 files changed, 41 insertions(+) create mode 100644 app/controllers/tasks_controller.rb create mode 100644 app/helpers/tasks_helper.rb create mode 100644 app/models/task.rb create mode 100644 app/views/tasks/.gitignore create mode 100644 db/migrate/20081012094223_create_tasks.rb create mode 100644 test/fixtures/tasks.yml create mode 100644 test/functional/tasks_controller_test.rb create mode 100644 test/unit/task_test.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb new file mode 100644 index 0000000..1ad33d0 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,2 @@ +class TasksController < ApplicationController +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 0000000..ce894d0 --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 0000000..935f76e --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ActiveRecord::Base +end diff --git a/app/views/tasks/.gitignore b/app/views/tasks/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/db/migrate/20081012094223_create_tasks.rb b/db/migrate/20081012094223_create_tasks.rb new file mode 100644 index 0000000..02eacfd --- /dev/null +++ b/db/migrate/20081012094223_create_tasks.rb @@ -0,0 +1,12 @@ +class CreateTasks < ActiveRecord::Migration + def self.up + create_table :tasks do |t| + + t.timestamps + end + end + + def self.down + drop_table :tasks + end +end diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 0000000..5bf0293 --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,7 @@ +# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html + +# one: +# column: value +# +# two: +# column: value diff --git a/test/functional/tasks_controller_test.rb b/test/functional/tasks_controller_test.rb new file mode 100644 index 0000000..98263bd --- /dev/null +++ b/test/functional/tasks_controller_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class TasksControllerTest < ActionController::TestCase + # Replace this with your real tests. + def test_truth + assert true + end +end diff --git a/test/unit/task_test.rb b/test/unit/task_test.rb new file mode 100644 index 0000000..4cbdb33 --- /dev/null +++ b/test/unit/task_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class TaskTest < ActiveSupport::TestCase + # Replace this with your real tests. + def test_truth + assert true + end +end