You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# db/data/20170111085301_add_foo_bar.rb
class AddFooBar < SeedMigration::Migration
def up
Foo::Bar.create!(name: 'Name 1')
end
def down
Foo::Bar.find_by!(name: 'Name 1').destroy
end
end
If I set extend_native_migration_task = true and run rails db:migrate, then I get the seeds.rb with the following content:
ActiveRecord::Base.transaction do
Foo::Bar.create!({})
ActiveRecord::Base.connection.reset_pk_sequence!('foo_bars')
end
SeedMigration::Migrator.bootstrap(20170111095343)
The text was updated successfully, but these errors were encountered:
Sorry for the late reply, I don't exactly know what I changed but I apparently muted the notifications from this repo by mistake and didn't notice new issues opened in the last 6 months. Sorry about that.
Thanks for the bug report. I can't promise that I'll have time to reproduce and fix it (but I'll try), but feel free to open a PR if you want to try to fix the bug. I'll happily review it.
Hi there.
If I set
extend_native_migration_task = true
and runrails db:migrate
, then I get theseeds.rb
with the following content:The text was updated successfully, but these errors were encountered: