Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
e97b8d05
Commit
e97b8d05
authored
Aug 26, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the foreign_key name
parent
dc2f4014
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
1_create_shotengai_products_and_orders.rb
db/migrate/1_create_shotengai_products_and_orders.rb
+2
-2
series.rb
lib/shotengai/series.rb
+1
-1
snapshot.rb
lib/shotengai/snapshot.rb
+1
-1
No files found.
db/migrate/1_create_shotengai_products_and_orders.rb
View file @
e97b8d05
...
@@ -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_product
s
,
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_order
s
,
foreign_key:
true
t
.
references
:shotengai_order
,
foreign_key:
true
t
.
timestamps
t
.
timestamps
end
end
...
...
lib/shotengai/series.rb
View file @
e97b8d05
...
@@ -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_product
s
_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
#
#
...
...
lib/shotengai/snapshot.rb
View file @
e97b8d05
...
@@ -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_order
s
_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
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment