Sha256: 6538fdbb6abc34a377b128110b221abdd57ece7559296e084e16bc14c0769d10
Contents?: true
Size: 411 Bytes
Versions: 61
Compression:
Stored size: 411 Bytes
Contents
class CreateSpudPosts < ActiveRecord::Migration def change create_table :spud_posts do |t| t.integer :spud_user_id t.string :title t.text :content t.boolean :comments_enabled, :default => false t.boolean :visible, :default => true t.datetime :published_at t.timestamps end add_index :spud_posts, :spud_user_id add_index :spud_posts, :visible end end
Version data entries
61 entries across 61 versions & 2 rubygems