Created
May 9, 2016 12:09
-
-
Save alexshagov/9a89a29d6c8cc6f137c4277b67ed7c3a to your computer and use it in GitHub Desktop.
blog 2-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Schema.define(version: 20160509115901) do | |
create_table "posts", force: :cascade do |t| | |
t.string "title" | |
t.text "body" | |
t.datetime "created_at", null: false | |
t.datetime "updated_at", null: false | |
end | |
create_table "posts_tags", force: :cascade do |t| | |
t.integer "tag_id" | |
t.integer "post_id" | |
end | |
add_index "posts_tags", ["post_id"], name: "index_posts_tags_on_post_id" | |
add_index "posts_tags", ["tag_id"], name: "index_posts_tags_on_tag_id" | |
create_table "tags", force: :cascade do |t| | |
t.string "title" | |
t.datetime "created_at", null: false | |
t.datetime "updated_at", null: false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment