Skip to content

Instantly share code, notes, and snippets.

@marcoroman89
Last active December 20, 2015 23:59
Show Gist options
  • Save marcoroman89/6216555 to your computer and use it in GitHub Desktop.
Save marcoroman89/6216555 to your computer and use it in GitHub Desktop.
class CreatePosts < ActiveRecord::Migration
def change
create_table :post do |t|
t.string :title, :url
t.text :description
t.integer :user_id
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment