Skip to content

Instantly share code, notes, and snippets.

Created June 25, 2011 20:10
Show Gist options
  • Save anonymous/1046850 to your computer and use it in GitHub Desktop.
Save anonymous/1046850 to your computer and use it in GitHub Desktop.
class CreateBundles < ActiveRecord::Migration
def self.up
create_table :bundles do |t|
t.string :bundle_id, :null => false
t.string :title, :null => false
t.timestamps
end
end
def self.down
drop_table :bundles
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment