Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def timestamp_attributes_for_create
- [ :registerDate ]
- end
- def timestamp_attributes_for_update
- [ :updateDate ]
- end
- begin
- ActiveRecord::Schema.define do
- # Create database schema
- create_table :jos_users do |t|
- t.integer :id, :null => false
- t.string :name
- t.string :username
- t.string :email
- t.datetime :registerDate
- t.datetime :updateDate
- end
- end
- rescue ActiveRecord::StatementInvalid
- #Do nothing, since the schema already exists
- end
- end
Add Comment
Please, Sign In to add comment