V
Size: a a a
V
NB
V
class CreateJoinTable < ActiveRecord::Migration[6.0]Я указываю отдельным параметром её имя, как в доке написано. Но почему-то, когда накатываю миграцию, в схеме показано, что имя всё равно дефолтное остаётся
def change
create_join_table :users, :tests, table_name: :users_tests do |t|
t.index :user_id
t.index :test_id
end
end
end
V
AE
IP
class CreateJoinTable < ActiveRecord::Migration[6.0]Я указываю отдельным параметром её имя, как в доке написано. Но почему-то, когда накатываю миграцию, в схеме показано, что имя всё равно дефолтное остаётся
def change
create_join_table :users, :tests, table_name: :users_tests do |t|
t.index :user_id
t.index :test_id
end
end
end
create_join_table :users, :tests,
{}, table_name: :users_tests
V
create_join_table :users, :tests,
{}, table_name: :users_tests
V
IP
IP
IP
IP
IP
IP
V
Sets the table name, overriding the default.