|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 20170210220945) do |
| 13 | +ActiveRecord::Schema.define(version: 20170211182808) do |
14 | 14 |
|
15 | 15 | create_table "films", force: :cascade do |t| |
16 | 16 | t.string "title" |
|
23 | 23 | t.datetime "updated_at", null: false |
24 | 24 | end |
25 | 25 |
|
| 26 | + create_table "films_people", id: false, force: :cascade do |t| |
| 27 | + t.integer "film_id", null: false |
| 28 | + t.integer "person_id", null: false |
| 29 | + t.index ["film_id"], name: "index_films_people_on_film_id" |
| 30 | + t.index ["person_id"], name: "index_films_people_on_person_id" |
| 31 | + end |
| 32 | + |
| 33 | + create_table "films_planets", id: false, force: :cascade do |t| |
| 34 | + t.integer "film_id", null: false |
| 35 | + t.integer "planet_id", null: false |
| 36 | + t.index ["film_id"], name: "index_films_planets_on_film_id" |
| 37 | + t.index ["planet_id"], name: "index_films_planets_on_planet_id" |
| 38 | + end |
| 39 | + |
| 40 | + create_table "films_species", id: false, force: :cascade do |t| |
| 41 | + t.integer "film_id", null: false |
| 42 | + t.integer "species_id", null: false |
| 43 | + t.index ["film_id"], name: "index_films_species_on_film_id" |
| 44 | + t.index ["species_id"], name: "index_films_species_on_species_id" |
| 45 | + end |
| 46 | + |
| 47 | + create_table "films_starships", id: false, force: :cascade do |t| |
| 48 | + t.integer "film_id", null: false |
| 49 | + t.integer "starship_id", null: false |
| 50 | + t.index ["film_id"], name: "index_films_starships_on_film_id" |
| 51 | + t.index ["starship_id"], name: "index_films_starships_on_starship_id" |
| 52 | + end |
| 53 | + |
| 54 | + create_table "films_vehicles", id: false, force: :cascade do |t| |
| 55 | + t.integer "film_id", null: false |
| 56 | + t.integer "vehicle_id", null: false |
| 57 | + t.index ["film_id"], name: "index_films_vehicles_on_film_id" |
| 58 | + t.index ["vehicle_id"], name: "index_films_vehicles_on_vehicle_id" |
| 59 | + end |
| 60 | + |
26 | 61 | create_table "people", force: :cascade do |t| |
27 | 62 | t.string "name" |
28 | 63 | t.string "birth_year" |
|
0 commit comments