1 class RestructComic < ActiveRecord::Migration
4 create_table :comics do |t|
5 t.string :title, :null => false, :limit => 100
6 t.integer :visible, :null => false, :default => 0
8 t.integer :author_id, :null => false
13 create_table :stories do |t|
14 t.integer :comic_id, :null => false, :default => 0
15 t.string :title, :null => false, :limit => 100
16 t.integer :visible, :null => false, :default => 0
18 t.integer :author_id, :null => false, :default => 0
19 t.integer :t, :null => false, :default => 0