devel
This commit is contained in:
parent
b4bc16ed14
commit
2afeebad53
49 changed files with 342 additions and 160 deletions
|
@ -1,19 +0,0 @@
|
|||
class CreateEvents < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :events do |t|
|
||||
t.integer :user_id
|
||||
t.integer :priority
|
||||
t.text :description
|
||||
t.string :category
|
||||
t.datetime :start
|
||||
t.datetime :stop
|
||||
t.boolean :allday
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :events
|
||||
end
|
||||
end
|
25
db/schema.rb
25
db/schema.rb
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110908094506) do
|
||||
ActiveRecord::Schema.define(:version => 20110913114841) do
|
||||
|
||||
create_table "contacts", :force => true do |t|
|
||||
t.string "nick"
|
||||
|
@ -23,18 +23,6 @@ ActiveRecord::Schema.define(:version => 20110908094506) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "events", :force => true do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "priority"
|
||||
t.text "description"
|
||||
t.string "category"
|
||||
t.datetime "start"
|
||||
t.datetime "stop"
|
||||
t.boolean "allday"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "folders", :force => true do |t|
|
||||
t.string "name"
|
||||
t.string "delim"
|
||||
|
@ -66,6 +54,17 @@ ActiveRecord::Schema.define(:version => 20110908094506) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "notes", :force => true do |t|
|
||||
t.integer "owner_id"
|
||||
t.string "owner_type"
|
||||
t.string "title"
|
||||
t.text "content"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "notes", ["owner_id", "owner_type"], :name => "index_notes_on_owner_id_and_owner_type"
|
||||
|
||||
create_table "prefs", :force => true do |t|
|
||||
t.string "theme"
|
||||
t.string "locale"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue