Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. def timestamp_attributes_for_create
  2. [ :registerDate ]
  3. end
  4.  
  5. def timestamp_attributes_for_update
  6. [ :updateDate ]
  7. end
  8.  
  9. begin
  10. ActiveRecord::Schema.define do
  11. # Create database schema
  12. create_table :jos_users do |t|
  13. t.integer :id, :null => false
  14. t.string :name
  15. t.string :username
  16. t.string :email
  17. t.datetime :registerDate
  18. t.datetime :updateDate
  19. end
  20. end
  21. rescue ActiveRecord::StatementInvalid
  22. #Do nothing, since the schema already exists
  23. end
  24. end
Add Comment
Please, Sign In to add comment