Code & Deploy
Code
Code Review
Models
Repos
Toggle menu
Code
Code Review
Models
Repos
Sign in
Sign in
@setoelkahfi
/
tower-of-bazel
tower-of-bazel
/
backend
/
musik88-web
/
db
/
migrate
/
20180523360138_create_lyrics.rb
Code
Commits
Issues
Pulls
Sessions
CI/CD
feature/share-libs
feature/share-libs
main
rb
12 lines
250 Bytes
Copy permalink
Copy
Raw
1
class
CreateLyrics
<
ActiveRecord
::
Migration
[
5.2
]
2
def
change
3
create_table
:lyrics
do
|
t
|
4
t
.
text
:lyric
5
t
.
string
:locale
6
t
.
integer
:song_id
,
:limit
=>
8
7
8
t
.
timestamps
9
end
10
add_foreign_key
:lyrics
,
:songs
11
end
12
end