projects
/
cs356-p2-videostore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use a text field for the customers address
[cs356-p2-videostore.git]
/
db
/
migrate
/
004_create_videos.rb
1
class CreateVideos < ActiveRecord::Migration
2
def self.up
3
create_table :videos do |t|
4
t.column :rentable_id, :integer
5
t.column :newrelease, :boolean, :default => false
6
t.column :director, :string
7
t.column :genre, :integer
8
end
9
end
10
11
def self.down
12
drop_table :videos
13
end
14
end