aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-12-02 16:02:01 +0100
committerYves Senn <yves.senn@gmail.com>2015-12-02 16:02:01 +0100
commit0f82f661b75a4cdeae027e80940200061b0496c2 (patch)
tree4cd89d25da92154d7c83f96ef710170228ec6018 /activerecord/test/schema
parent3da890f891b116218c10d9b049dba23d15d416cf (diff)
downloadrails-0f82f661b75a4cdeae027e80940200061b0496c2.tar.gz
rails-0f82f661b75a4cdeae027e80940200061b0496c2.tar.bz2
rails-0f82f661b75a4cdeae027e80940200061b0496c2.zip
tests, pluralize singular table name.
This solves the following error: ActiveRecord::StatementInvalid: Could not find table 'guitars' It seems that the table structure of the `Guitar` model has not been necessary until now. Due to the wrong table name the model was not correctly linked to the table.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 99098017d7..025184f63a 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -356,7 +356,7 @@ ActiveRecord::Schema.define do
t.column :key, :string
end
- create_table :guitar, force: true do |t|
+ create_table :guitars, force: true do |t|
t.string :color
end