Migration inherits from ActiveRecord::Migration[5.0]
New instance variable @primary_key_option gets printed just after the name of the table. Its value is '' if create_id is true and , id: false in case create_id is false. By default, create_table will create a primary key called id. if you don't want a primary key at all, you can pass the option id: false.
@primary_key_option
gets printed just after the name of the table. Its value is''
if create_id is true and, id: false
in case create_id is false. By default, create_table will create a primary key called id. if you don't want a primary key at all, you can pass the option id: false.