Skip to content

Instantly share code, notes, and snippets.

@eduardopoleo
Created July 27, 2016 02:50
Show Gist options
  • Select an option

  • Save eduardopoleo/0749d68df29cabff9fe21647b26fb572 to your computer and use it in GitHub Desktop.

Select an option

Save eduardopoleo/0749d68df29cabff9fe21647b26fb572 to your computer and use it in GitHub Desktop.
create_table "cities", force: :cascade do |t|
t.string "name"
t.integer "population"
t.boolean "is_capital"
t.string "major"
t.integer "area"
t.datetime "date_founded"
end
create_table "libraries", force: :cascade do |t|
t.string "name"
t.string "size"
t.boolean "is_public"
t.string "adress"
t.integer "desk_number"
t.datetime "date_built"
end
create_table "books", force: :cascade do |t|
t.string "title"
t.integer "page_number"
t.string "author"
t.string "topic"
t.boolean "is_available"
t.datetime "date_written"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment