repo.or.cz
/
lyrix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
InPlaceEditor removed from the view.
[lyrix.git]
/
db
/
migrate
/
001_create_songs.rb
blob
ca0f29bdda9672bce832eb06c2de28eae0add091
1
class CreateSongs < ActiveRecord::Migration
2
def self.up
3
create_table :songs do |t|
4
t.column :title, :string, :null => false
5
t.column :artist, :string
6
t.column :lyrics, :text
7
t.column :created_at, :datetime
8
t.column :updated_at, :datetime
9
end
10
end
11
12
def self.down
13
drop_table :songs
14
end
15
end