OSDN Git Service

import all source code
[pettanr/pettanr.git] / db / migrate / 20111206112042_create_original_pictures.rb
1 class CreateOriginalPictures < ActiveRecord::Migration
2   def change
3     create_table :original_pictures do |t|
4       t.string :ext, :null => false
5       t.integer :width, :null => false
6       t.integer :height, :null => false
7       t.integer :filesize, :null => false
8       t.integer :artist_id#, :null => false
9       t.integer :lisence_id#, :null => false
10
11       t.timestamps
12     end
13     add_index :original_pictures, [:artist_id]\r
14   end
15 end