aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-04 19:44:17 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-04 19:44:17 -0300
commit57c7d5cb80086e66eee3303b11a5e558aa9e5bf2 (patch)
tree4f414bcd72af62768d07ba01f0791db7aa3b960b /activerecord/test/schema
parent989cccdc3e6f9c6dcb740b2792fcc74b19eed67e (diff)
downloadrails-57c7d5cb80086e66eee3303b11a5e558aa9e5bf2.tar.gz
rails-57c7d5cb80086e66eee3303b11a5e558aa9e5bf2.tar.bz2
rails-57c7d5cb80086e66eee3303b11a5e558aa9e5bf2.zip
Fix the test defining the models in the right place
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index a9c4980283..5bd3a51a84 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -161,6 +161,10 @@ ActiveRecord::Schema.define do
t.integer :references, null: false
end
+ create_table :columns, force: true do |t|
+ t.references :record
+ end
+
create_table :comments, force: true do |t|
t.integer :post_id, null: false
# use VARCHAR2(4000) instead of CLOB datatype as CLOB data type has many limitations in
@@ -819,6 +823,8 @@ ActiveRecord::Schema.define do
t.integer :department_id
end
+ create_table :records, force: true do |t|
+ end
except 'SQLite' do
# fk_test_has_fk should be before fk_test_has_pk