Add GamePolicy and integrate with the Game model
[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