# This file is auto-generated from the current state of the database. Instead of editing this file, 
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20100506233047) do

  create_table "actors", :force => true do |t|
    t.string   "last_name"
    t.string   "first_name"
    t.integer  "year_of_birth"
    t.string   "nationality"
    t.string   "height"
    t.string   "gender",        :default => "M"
    t.text     "bio"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "actors_movies", :id => false, :force => true do |t|
    t.integer "actor_id", :null => false
    t.integer "movie_id", :null => false
  end

  add_index "actors_movies", ["actor_id", "movie_id"], :name => "index_actors_movies_on_actor_id_and_movie_id", :unique => true

  create_table "genres", :force => true do |t|
    t.string   "genre_name"
    t.string   "genre_description"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "movies", :force => true do |t|
    t.string   "title"
    t.integer  "year_released"
    t.string   "language"
    t.string   "rating"
    t.string   "length"
    t.boolean  "black_and_white"
    t.string   "star_rating"
    t.integer  "genre_id"
    t.text     "synopsis"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "photos", :force => true do |t|
    t.string   "name"
    t.string   "description"
    t.string   "content_type"
    t.integer  "actor_id"
    t.date     "date_taken"
    t.binary   "data",         :limit => 1048576
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "reviews", :force => true do |t|
    t.integer  "movie_id"
    t.string   "reviewer_name"
    t.string   "organization"
    t.date     "review_date"
    t.text     "review_text"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end
