Added duration to tasks. Annotated all models.
This commit is contained in:
parent
face58ebef
commit
dcd2a514a6
30 changed files with 494 additions and 431 deletions
9
db/migrate/20110507184920_add_duration_to_tasks.rb
Normal file
9
db/migrate/20110507184920_add_duration_to_tasks.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class AddDurationToTasks < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :tasks, :duration, :integer
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :tasks, :duration
|
||||
end
|
||||
end
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20090907120012) do
|
||||
ActiveRecord::Schema.define(:version => 20110507184920) do
|
||||
|
||||
create_table "article_categories", :force => true do |t|
|
||||
t.string "name", :default => "", :null => false
|
||||
|
|
@ -261,10 +261,6 @@ ActiveRecord::Schema.define(:version => 20090907120012) do
|
|||
add_index "pages", ["permalink"], :name => "index_pages_on_permalink"
|
||||
add_index "pages", ["title"], :name => "index_pages_on_title"
|
||||
|
||||
create_table "schema_info", :id => false, :force => true do |t|
|
||||
t.integer "version"
|
||||
end
|
||||
|
||||
create_table "stock_changes", :force => true do |t|
|
||||
t.integer "delivery_id"
|
||||
t.integer "order_id"
|
||||
|
|
@ -315,6 +311,7 @@ ActiveRecord::Schema.define(:version => 20090907120012) do
|
|||
t.datetime "updated_on", :null => false
|
||||
t.integer "required_users", :default => 1
|
||||
t.boolean "weekly"
|
||||
t.integer "duration"
|
||||
end
|
||||
|
||||
add_index "tasks", ["due_date"], :name => "index_tasks_on_due_date"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue