Add the VideoPolicy model, to hold all the base prices and periods
[cs356-p2-videostore.git] / db / migrate / 022_create_video_policies.rb
1 class CreateVideoPolicies < ActiveRecord::Migration
2   def self.up
3     create_table :video_policies do |t|
4       t.column :day, :integer, :null => false
5       t.column :fee, :decimal, :precision => 8, :scale => 2, :null => false
6       t.column :period, :integer
7       t.column :description, :string
8     end
9   end
10
11   def self.down
12     drop_table :video_policies
13   end
14 end