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:
parent
cd736dbfa4
commit
3b910de771
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue