Commit e97b8d05 by ivan Lan

Fix the foreign_key name

parent dc2f4014
...@@ -28,7 +28,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1] ...@@ -28,7 +28,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
t.string :type t.string :type
t.json :meta t.json :meta
t.references :shotengai_products, foreign_key: true t.references :shotengai_product, foreign_key: true
t.timestamps t.timestamps
end end
...@@ -72,7 +72,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1] ...@@ -72,7 +72,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
t.json :meta t.json :meta
t.references :shotengai_series, foreign_key: true t.references :shotengai_series, foreign_key: true
t.references :shotengai_orders, foreign_key: true t.references :shotengai_order, foreign_key: true
t.timestamps t.timestamps
end end
......
...@@ -10,7 +10,7 @@ module Shotengai ...@@ -10,7 +10,7 @@ module Shotengai
# spec :json # spec :json
# type :string(255) # type :string(255)
# meta :json # meta :json
# shotengai_products_id :integer # shotengai_product_id :integer
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# #
......
...@@ -14,7 +14,7 @@ module Shotengai ...@@ -14,7 +14,7 @@ module Shotengai
# type :string(255) # type :string(255)
# meta :json # meta :json
# shotengai_series_id :integer # shotengai_series_id :integer
# shotengai_orders_id :integer # shotengai_order_id :integer
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment