Created
June 5, 2013 03:08
-
-
Save mikeraimondi/5711353 to your computer and use it in GitHub Desktop.
null constraint example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateWidgets < ActiveRecord::Migration | |
def change | |
create_table :widgets do |t| | |
t.string :name, null: false | |
t.string :description | |
t.timestamps | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment