Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created June 24, 2010 02:04
Show Gist options
  • Save edipofederle/450871 to your computer and use it in GitHub Desktop.
Save edipofederle/450871 to your computer and use it in GitHub Desktop.
class CreateProducts < ActiveRecord::Migration
def self.up
create_table :products do |t|
t.string :nome
t.text :descricao
t.timestamps
end
end
def self.down
drop_table :products
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment