diff options
author | Jon McCartie <jon@mccartie.com> | 2016-08-21 09:50:24 -0700 |
---|---|---|
committer | Jon McCartie <jon@mccartie.com> | 2016-12-05 11:34:35 -0800 |
commit | b92ae610699f991e4616409815fa1e7f134dacc5 (patch) | |
tree | b5ef1864174e60522e9e05a0f33c400a348dc076 /activerecord/test/schema | |
parent | 575212a1ba2e4d170985531402c6e3d27af5a0ea (diff) | |
download | rails-b92ae610699f991e4616409815fa1e7f134dacc5.tar.gz rails-b92ae610699f991e4616409815fa1e7f134dacc5.tar.bz2 rails-b92ae610699f991e4616409815fa1e7f134dacc5.zip |
Change MySQL and Postgresql to use Bigint primary keys
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index d889f46031..dcf29d36f4 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -54,7 +54,7 @@ ActiveRecord::Schema.define do create_table :authors, force: true do |t| t.string :name, null: false - t.integer :author_address_id + t.bigint :author_address_id t.integer :author_address_extra_id t.string :organization_id t.string :owned_essay_id @@ -303,7 +303,7 @@ ActiveRecord::Schema.define do end create_table :engines, force: true do |t| - t.integer :car_id + t.bigint :car_id end create_table :entrants, force: true do |t| @@ -1004,7 +1004,7 @@ ActiveRecord::Schema.define do if supports_foreign_keys? # fk_test_has_fk should be before fk_test_has_pk create_table :fk_test_has_fk, force: true do |t| - t.integer :fk_id, null: false + t.bigint :fk_id, null: false end create_table :fk_test_has_pk, force: true, primary_key: "pk_id" do |t| |