Sha256: 969b1ce5b086f5076e41030c3fc11fb0837bbaa93f7cde7d61e8b6542b672e32
Contents?: true
Size: 331 Bytes
Versions: 32
Compression:
Stored size: 331 Bytes
Contents
class CreateChapters < ActiveRecord::Migration def change create_table :chapters do |t| t.string :title, :null => false t.text :text t.text :sample_html t.integer :book_id t.integer :item_position t.timestamps(null: false) end add_index :chapters, :book_id end end
Version data entries
32 entries across 32 versions & 1 rubygems