diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-03-30 06:49:04 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-03-30 06:49:04 +0900 |
commit | 3b910de77165223186c9cc6f649043e90439db31 (patch) | |
tree | 3347982cf2a4a9c7265ccfb595881068a37d7bc9 /activerecord/test/schema | |
parent | cd736dbfa4c81166797a55d4877aac92e45327f8 (diff) | |
download | rails-3b910de77165223186c9cc6f649043e90439db31.tar.gz rails-3b910de77165223186c9cc6f649043e90439db31.tar.bz2 rails-3b910de77165223186c9cc6f649043e90439db31.zip |
Remove `except` helper for test schema
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 01dbf2cee6..2bcdc8729e 100644 --- a/activerecord/test/schema/schema.rb +++ b/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 @@ 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 |