Skip to content

Instantly share code, notes, and snippets.

@EssenceOfChaos
Last active September 5, 2017 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EssenceOfChaos/8e5de47a720a523ce9a6a73b5435a73e to your computer and use it in GitHub Desktop.
Save EssenceOfChaos/8e5de47a720a523ce9a6a73b5435a73e to your computer and use it in GitHub Desktop.
migration for User
class CreateUsers < ActiveRecord::Migration[5.1]
def change
create_table :users do |t|
t.string :first_name
t.string :last_name
t.string :email
t.string :phone
t.hstore :address
t.string :eye_color
t.date :dob
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment