Permalink
Browse files

Remove `except` helper for test schema

  • Loading branch information...
kamipo committed Mar 29, 2016
1 parent cd736db commit 3b910de77165223186c9cc6f649043e90439db31
Showing with 1 addition and 7 deletions.
  1. +1 −7 activerecord/test/schema/schema.rb
@@ -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 @@ 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

0 comments on commit 3b910de

Please sign in to comment.