Tag: sinatra activerecord

派生的Activerecord Ruby类

我对ruby完全不熟悉。 我正在尝试为任务跟踪应用程序创建RESTful服务。 我研究并发现Sinatra比铁路更好。 所以我使用的是Sinatra和ActiveRecord。 我正在跟随Sinatra和ActiveRecord运行 。 我将使用Restsharp在.NET中创建客户端应用程序。 但这都是关于服务器端的。 这是我创建的迁移 class CreateTasksPeopleDocumentsAndComments < ActiveRecord::Migration def self.up create_table :tasks do |t| t.string :name t.string :task_status t.string :task_type t.text :description t.text :analysis t.text :investigation t.integer :developer_id t.integer :reviewer_id t.date :open_date t.date :analysis_date t.date :promotion_date t.date :review_date t.date :correction_date t.date :collection_date t.date :closed_date t.date :modified_date t.date :target_date end create_table […]