Skip to content

Instantly share code, notes, and snippets.

@tobeportable
tobeportable / bug.md
Created January 28, 2015 14:17
rails sqlite migration bug boolean
class CreateMemberships < ActiveRecord::Migration
  def change
    create_table :memberships do |t|
      t.boolean :needs_emails, default:true
      t.belongs_to :user
      t.belongs_to :tag
      t.timestamps null:false
    end
 end
config.load_autoconfig()
config.bind('R', 'config-source ;; message-info config-reloaded')
# saner defaults
# --------------
c.auto_save.session = True
c.aliases['x'] = 'quit --save'
c.completion.shrink = False
c.input.insert_mode.auto_load = True
c.confirm_quit = ["downloads"]