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
a6c808e4
Commit
a6c808e4
authored
Sep 25, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add meta to catalog
parent
7ebcb238
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
2_create_shotengai_catalogs.rb
db/migrate/2_create_shotengai_catalogs.rb
+1
-0
catalog.rb
lib/shotengai/catalog.rb
+1
-0
No files found.
db/migrate/2_create_shotengai_catalogs.rb
View file @
a6c808e4
...
...
@@ -4,6 +4,7 @@ class CreateShotengaiCatalogs < ActiveRecord::Migration[5.1]
t
.
string
:name
t
.
string
:level_type
t
.
string
:image
t
.
json
:meta
# STI
t
.
string
:type
t
.
references
:super_catalog
,
index:
true
...
...
lib/shotengai/catalog.rb
View file @
a6c808e4
...
...
@@ -7,6 +7,7 @@ module Shotengai
# name :string(255)
# level_type :string(255)
# image :string(255)
# meta :json
# type :string(255)
# super_catalog_id :integer
# created_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