OSDN Git Service

extend resource picture
[pettanr/pettanr.git] / db / migrate / 20130726014956_create_writing_formats.rb
1 class CreateWritingFormats < ActiveRecord::Migration
2   def change
3     create_table :writing_formats do |t|
4       t.string :name, :null => false, :limit => 50
5       t.string :classname, :null => false, :limit => 50
6       t.string :caption, :null => false, :limit => 30
7       t.string :system_picture_id, :null => false, :default => 1
8       t.integer :t, :null => false, :default => 0
9       t.text :settings, :null => false
10
11       t.timestamps
12     end
13   end
14 end