Skip to content

Instantly share code, notes, and snippets.

@mikeraimondi
Created June 9, 2013 15:57
Show Gist options
  • Save mikeraimondi/5744038 to your computer and use it in GitHub Desktop.
Save mikeraimondi/5744038 to your computer and use it in GitHub Desktop.
validation example 2
class CreateCats < ActiveRecord::Migration
def change
create_table :cats do |t|
t.string :color
t.integer :crazy_cat_lady_id, null: false
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment