1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove except helper for test schema

This commit is contained in:
Ryuta Kamizono 2016-03-30 06:49:04 +09:00
parent cd736dbfa4
commit 3b910de771

View file

@ -1,10 +1,4 @@
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 @@ ActiveRecord::Schema.define do
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