--- /dev/null
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
--- /dev/null
+// Place all the styles related to the Projects controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class Orvos::V1::ProjectsController < ApplicationController
+end
--- /dev/null
+module ProjectsHelper
+end
--- /dev/null
+class Project < ActiveRecord::Base
+end
Server::Application.routes.draw do
+ resources :projects
+
resources :specimens
resources :collections
resources :metadata
--- /dev/null
+class CreateProjects < ActiveRecord::Migration
+ def up
+ create_table :projects do |t|
+ t.string :uuid
+ t.string :created_by_client
+ t.string :created_by_user
+ t.datetime :created_at
+ t.string :modified_by_client
+ t.string :modified_by_user
+ t.datetime :modified_at
+ t.string :name
+ t.text :description
+
+ t.timestamps
+ end
+ add_index :projects, :uuid, :unique => true
+ end
+ def down
+ drop_table :projects
+ end
+end
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130116024233) do
+ActiveRecord::Schema.define(:version => 20130116215213) do
create_table "collections", :force => true do |t|
t.string "locator"
add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
+ create_table "projects", :force => true do |t|
+ t.string "uuid"
+ t.string "created_by_client"
+ t.string "created_by_user"
+ t.datetime "created_at"
+ t.string "modified_by_client"
+ t.string "modified_by_user"
+ t.datetime "modified_at"
+ t.string "name"
+ t.text "description"
+ t.datetime "updated_at"
+ end
+
+ add_index "projects", ["uuid"], :name => "index_projects_on_uuid", :unique => true
+
create_table "specimens", :force => true do |t|
t.string "uuid"
t.string "created_by_client"
--- /dev/null
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
--- /dev/null
+require 'test_helper'
+
+class ProjectsControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class ProjectsHelperTest < ActionView::TestCase
+end
--- /dev/null
+require 'test_helper'
+
+class ProjectTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end