Skip to content

Instantly share code, notes, and snippets.

@alainlompo
Created February 14, 2017 22:16
Show Gist options
  • Save alainlompo/b3ff36a13b45fa259123c65914cff370 to your computer and use it in GitHub Desktop.
Save alainlompo/b3ff36a13b45fa259123c65914cff370 to your computer and use it in GitHub Desktop.
Rails db migration sample source code
class CreatePurchases < ActiveRecord::Migration
def change
create_table :purchases do |t|
t.string :name
t.float :cost
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment