class CreateEvents < ActiveRecord::Migration
  def up
    create_table "events", :force => true do |t|
      t.integer  "library_id",        :default => 1,     :null => false
      t.integer  "event_category_id", :default => 1,     :null => false
      t.string   "name"
      t.text     "note"
      t.datetime "start_at"
      t.datetime "end_at"
      t.boolean  "all_day",           :default => false, :null => false
      t.datetime "deleted_at"
      t.datetime "created_at",                           :null => false
      t.datetime "updated_at",                           :null => false
      t.text     "display_name"
    end

    add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
    add_index "events", ["library_id"], :name => "index_events_on_library_id"
  end

  def down
  end
end
