Last active
February 22, 2020 02:50
-
-
Save cebartling/6918aac7c2d18437f25f7336165e1554 to your computer and use it in GitHub Desktop.
Ruby on Jets database migration
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 CreateUsers < ActiveRecord::Migration[6.0] | |
def change | |
create_table :users do |t| | |
t.string :first_name | |
t.string :last_name | |
t.integer :age | |
t.timestamps | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment