mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Added TaskList and Task migrations and models
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class TaskList < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :task_lists do |t|
|
||||
t.integer "item_id", :null => false
|
||||
t.string "item_type", :null => false
|
||||
t.string "name", :null => false
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class Task < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :tasks do |t|
|
||||
t.integer "task_list_id", :null => false
|
||||
t.string "task", :null => false
|
||||
t.text "notes"
|
||||
t.boolean "done"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user