aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-03-30 06:49:04 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-03-30 06:49:04 +0900
commit3b910de77165223186c9cc6f649043e90439db31 (patch)
tree3347982cf2a4a9c7265ccfb595881068a37d7bc9 /activerecord/test/schema
parentcd736dbfa4c81166797a55d4877aac92e45327f8 (diff)
downloadrails-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.rb8
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