]> cat aescling's git repositories - mastodon.git/commit
Use disable_ddl_transaction! to prevent warnings on migration (#6183)
authorunarist <m.unarist@gmail.com>
Thu, 4 Jan 2018 18:38:29 +0000 (03:38 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 4 Jan 2018 18:38:29 +0000 (19:38 +0100)
commit7347d4f8bb6471c892d4feb58e1e0a4d13a229c4
tree55ef68a7d2f4fe6e140229310a9a3e4eeb731e72
parent7571c37c991c7bcaf83c524105f4a3b64b19670c
Use disable_ddl_transaction! to prevent warnings on migration (#6183)

Migration is wrapped by transaction, so manual `commit_db_transaction` without transaction restarting causes "there is no transaction in progress" warnings. We should use `disable_ddl_transaction!` instead, if we can omit transaction completely.
db/migrate/20171129172043_add_index_on_stream_entries.rb
db/migrate/20171226094803_more_faster_index_on_notifications.rb