Commits

Anonymous committed 432e4c7

added activerecord support to project

  • Participants
  • Parent commits 217424a

Comments (0)

Files changed (3)

File StatusWriter/lib/database_connection.rb

+require "rubygems"
+require "active_record"
+
+ActiveRecord::Base.establish_connection(
+  :adapter => "sqlite3",
+  :database => "../db/task.db"
+)

File StatusWriter/lib/schema.rb

+require "database_connection"
+
+class Task < ActiveRecord::Base
+  
+end

File StatusWriter/lib/task.rb

-
-=begin
-
-=end
-class Task
-  def initialize( id, description)
-    @id = id
-    @description = description
-  end
-  def id
-    return @id
-  end
-  def id=(id)
-    @id = id
-  end
-end