aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-06-17 08:55:19 +0930
committerGitHub <noreply@github.com>2017-06-17 08:55:19 +0930
commitfca22ba38d264e5d4a329c6a0b7f83a5d19bdbc2 (patch)
tree44eb2de8f5c50a11508f414a34ec885622bd4ab2 /activerecord
parent019c7f92f09170f0f87105f544ae4eff49e83de7 (diff)
parent5409e5e31b00f05d4e706d2086a3205974a25886 (diff)
downloadrails-fca22ba38d264e5d4a329c6a0b7f83a5d19bdbc2.tar.gz
rails-fca22ba38d264e5d4a329c6a0b7f83a5d19bdbc2.tar.bz2
rails-fca22ba38d264e5d4a329c6a0b7f83a5d19bdbc2.zip
Merge pull request #29470 from kamipo/use_nullable_column_instead_of_primary_key
Use nullable `id` column instead of a primary key
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/schema/schema.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 8863736943..dc8bdb98ff 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -814,9 +814,10 @@ ActiveRecord::Schema.define do
t.index :id, unique: true
end
- create_table :subscribers, force: true do |t|
+ create_table :subscribers, id: false, force: true do |t|
t.string :nick, null: false
t.string :name
+ t.integer :id
t.integer :books_count, null: false, default: 0
t.integer :update_count, null: false, default: 0
t.index :nick, unique: true