提交 3b910de7 编写于 作者: R Ryuta Kamizono

Remove `except` helper for test schema

上级 cd736dbf
ActiveRecord::Schema.define do
def except(adapter_names_to_exclude)
unless [adapter_names_to_exclude].flatten.include?(adapter_name)
yield
end
end
# ------------------------------------------------------------------- #
# #
# Please keep these create table statements in alphabetical order #
......@@ -991,7 +985,7 @@ def except(adapter_names_to_exclude)
create_table :records, force: true do |t|
end
except 'SQLite' do
if supports_foreign_keys?
# fk_test_has_fk should be before fk_test_has_pk
create_table :fk_test_has_fk, force: true do |t|
t.integer :fk_id, null: false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册