include KindAndEtag
include CommonApiTemplate
serialize :info, Hash
+ before_validation :set_default_event_at
api_accessible :superuser, :extend => :common do |t|
t.add :object_kind
t.add :summary
t.add :info
end
+
+ protected
+
+ def set_default_event_at
+ self.event_at ||= Time.now
+ end
end
Server::Application.routes.draw do
resources :logs
-
resources :projects
-
resources :specimens
resources :collections
resources :metadata
resources :pipelineInvocations
resources :specimens
resources :projects
+ resources :logs
match '/schema' => 'schema#show'
match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
match '/metadata/:tail_kind/:tail' => 'metadata#index'
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130122201442) do
+ActiveRecord::Schema.define(:version => 20130122221616) do
create_table "collections", :force => true do |t|
t.string "locator"
t.text "info"
t.datetime "created_at"
t.datetime "updated_at"
+ t.datetime "modified_at"
end
add_index "logs", ["event_at"], :name => "index_logs_on_event_at"