Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Apr 5, 2015
1 parent 076e2ce commit aac4793
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ end

add_index "child", ["parent_id"], name: "par_ind", using: :btree

add_foreign_key "child", "parent", name: "child_ibfk_1", dependent: :delete
add_foreign_key "child", "parent", name: "child_ibfk_1"
```

## Collation
Expand All @@ -188,25 +188,6 @@ create_table "articles", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSE
end
```

## bigint support
Export of `bigint` PK is enabled by passing `--enable-mysql-pkdump` ([activerecord-mysql-pkdump](https://github.com/winebarrel/activerecord-mysql-pkdump) is required)
```ruby
create_table "books", id: "bigint(20) PRIMARY KEY auto_increment", force: :cascade do |t|
t.string "title", null: false
t.integer "author_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
end
```

If you use `--enable-mysql-awesome`:

```ruby
create_table "books", id: :bigint, force: :cascade do |t|
...
end
```

## Execute
```ruby
create_table "authors", force: :cascade do |t|
Expand Down

0 comments on commit aac4793

Please sign in to comment.