Created
February 14, 2017 22:16
-
-
Save alainlompo/b3ff36a13b45fa259123c65914cff370 to your computer and use it in GitHub Desktop.
Rails db migration sample source code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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