Skip to content

Instantly share code, notes, and snippets.

@j-manu
Created November 17, 2011 22:16
Show Gist options
  • Save j-manu/1374728 to your computer and use it in GitHub Desktop.
Save j-manu/1374728 to your computer and use it in GitHub Desktop.
class CreateList < ActiveRecord::Migration
def self.up
create_table :lists do |t|
t.column :name, :string
t.column :link, :text
t.column :position, :integer
end
end
def self.down
drop_table :lists
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment