Guest User

Untitled

a guest
May 24th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Vodafone-UK', '2008-10-16 13:02:35', 'vu', TRUE, '2008-10-16 13:02:35')
  2. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Jersey-Telecom-UK', '2008-10-16 13:02:35', 'ju', FALSE, '2008-10-16 13:02:35')
  3. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Three-IE', '2008-10-16 13:02:35', 'hi', FALSE, '2008-10-16 13:02:35')
  4. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('T-Mobile-UK', '2008-10-16 13:02:35', 'tu', TRUE, '2008-10-16 13:02:35')
  5. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Three-UK', '2008-10-16 13:02:35', 'hu', TRUE, '2008-10-16 13:02:35')
  6. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Meteor-IE', '2008-10-16 13:02:35', 'mei', FALSE, '2008-10-16 13:02:35')
  7. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('O2-IE', '2008-10-16 13:02:35', 'xi', TRUE, '2008-10-16 13:02:35')
  8. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Orange-UK', '2008-10-16 13:02:35', 'ou', TRUE, '2008-10-16 13:02:35')
  9. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('O2-UK', '2008-10-16 13:02:35', 'xu', TRUE, '2008-10-16 13:02:35')
  10. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Vodafone-IE', '2008-10-16 13:02:35', 'vi', TRUE, '2008-10-16 13:02:35')
  11. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('TynTec-Manx-UK', '2008-10-16 13:02:35', 'mu', TRUE, '2008-10-16 13:02:35')
  12. ~ INSERT INTO `operators` (`name`, `updated_at`, `code`, `use_sms_billing`, `created_at`) VALUES ('Vodafone-UK', '2008-10-16 13:02:35', 'vu', TRUE, '2008-10-16 13:02:35')
  13. => true
  14. >> Operator.get nil
  15. ~ SELECT `id`, `name`, `code`, `use_sms_billing`, `created_at`, `updated_at` FROM `operators` WHERE (`id` IS NULL) ORDER BY `id` LIMIT 1
  16. => #<Operator id=12 name="Vodafone-UK" code="vu" use_sms_billing=true created_at=#<DateTime: 42418183711/17280,1/24,2299161> updated_at=#<DateTime: 42418183711/17280,1/24,2299161>>
  17. >> Operator.get nil
  18. ~ SELECT `id`, `name`, `code`, `use_sms_billing`, `created_at`, `updated_at` FROM `operators` WHERE (`id` IS NULL) ORDER BY `id` LIMIT 1
  19. => nil
Add Comment
Please, Sign In to add comment