Skip to content

Instantly share code, notes, and snippets.

@house9
Created April 24, 2009 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save house9/100947 to your computer and use it in GitHub Desktop.
Save house9/100947 to your computer and use it in GitHub Desktop.
class CreateWidgets < ActiveRecord::Migration
def self.up
create_table :widgets do |t|
t.string :name, :limit => 255, :null => false
t.timestamps
end
end
def self.down
drop_table :widgets
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment