Guest User

Untitled

a guest
Apr 27th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class CreateClients < ActiveRecord::Migration
  2. def self.up
  3. create_table :clients do |t|
  4. t.column :tradename_id, :integer, :null => false
  5. t.column :screen_name, :string
  6. t.column :email, :string
  7. t.column :password, :string
  8. t.column :business_name, :string
  9. t.column :address_line1, :string
  10. t.column :address_line2, :string
  11. t.column :address_city, :string
  12. t.column :address_state, :string
  13. t.column :address_zip, :integer
  14. t.column :contact_phone, :string
  15. end
  16. end
  17.  
  18. def self.down
  19. drop_table :clients
  20. end
  21. end
Add Comment
Please, Sign In to add comment