notify_user 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +61 -6
  3. data/app/models/notify_user/houston.rb +4 -1
  4. data/lib/generators/notify_user/install/templates/initializer.rb +0 -3
  5. data/lib/notify_user/version.rb +1 -1
  6. data/lib/notify_user.rb +0 -4
  7. data/spec/dummy/rails-3.2.17/app/notifications/new_post_notification.rb +6 -2
  8. data/spec/dummy/rails-3.2.17/config/initializers/secret_token.rb +1 -1
  9. data/spec/dummy/rails-3.2.17/config/keys/development_push.pem +0 -0
  10. data/spec/dummy/rails-3.2.17/db/migrate/{20150106040852_create_users.rb → 20141102231350_create_users.rb} +0 -0
  11. data/spec/dummy/rails-3.2.17/db/migrate/{20150106040854857857604000_create_notify_user_notifications.rb → 20141102231353649649586000_create_notify_user_notifications.rb} +0 -0
  12. data/spec/dummy/rails-3.2.17/db/migrate/{20150106040854860860323000_create_notify_user_unsubscribes.rb → 20141102231353650650817000_create_notify_user_unsubscribes.rb} +0 -0
  13. data/spec/dummy/rails-3.2.17/db/migrate/{20150106040854862862248000_create_notify_user_user_hashes.rb → 20141102231353651651843000_create_notify_user_user_hashes.rb} +0 -0
  14. data/spec/dummy/rails-3.2.17/db/schema.rb +1 -1
  15. data/spec/dummy/rails-3.2.17/log/test.log +9319 -678
  16. data/spec/dummy/rails-4.0.4/app/notifications/new_post_notification.rb +6 -2
  17. data/spec/dummy/rails-4.0.4/config/initializers/secret_token.rb +1 -1
  18. data/spec/dummy/rails-4.0.4/config/keys/development_push.pem +136 -0
  19. data/spec/dummy/rails-4.0.4/db/migrate/{20140624075850_create_users.rb → 20141102231412_create_users.rb} +0 -0
  20. data/spec/dummy/rails-4.0.4/db/migrate/{20140624075852587587217000_create_notify_user_notifications.rb → 20141102231413669669843000_create_notify_user_notifications.rb} +0 -0
  21. data/spec/dummy/rails-4.0.4/db/migrate/{20140624075852588588765000_create_notify_user_unsubscribes.rb → 20141102231413670670945000_create_notify_user_unsubscribes.rb} +0 -0
  22. data/spec/dummy/rails-4.0.4/db/migrate/{20140624075852590590153000_create_notify_user_user_hashes.rb → 20141102231413671671735000_create_notify_user_user_hashes.rb} +0 -0
  23. data/spec/dummy/rails-4.0.4/db/schema.rb +1 -1
  24. data/spec/dummy/rails-4.0.4/log/test.log +33797 -68931
  25. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{9c7f6978ddc871d6e3ac0032be398a00 → 0e8918f38b9bf3fc19fca4efda1600a1} +0 -0
  26. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/1bded108b40ef13c7e07be129e2cd83c +0 -0
  28. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/1ebdd9dfe7e88e90bee37951e2da1ea2 +0 -0
  29. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/23fe609acece1521082ad6b8249f96b1 +0 -0
  30. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  31. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  32. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{5c85b1b5ac27b699c5f800c4e7ec82fb → 40fd179449501b801f80c852d1635a16} +0 -0
  33. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{35025e256922e55fb999ec21dd95fa29 → 4499e16a29d89bdf30304de41c456b43} +0 -0
  34. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{c5b062f65e9c52603e1d81e4a1e66a86 → 49088e1598df49c63ff7d874c97e958f} +0 -0
  35. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{1d6bc1877ba2bbb89f393e10e8303d39 → 7398a3a743326d3576cbb05a000df04b} +0 -0
  36. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{fa138a16887e031c0ae1b4caccfb4c05 → 8eedfb1d9aee665c9f5a77df67b64a81} +0 -0
  37. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/91d718eeae4552c702b8eafd9e8bbe76 +0 -0
  38. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/9e2c26ef339b5827a5c296acb284ab99 +0 -0
  39. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{fa5fa8289c6899f4bf819fb198773fcf → a4f2f445b4f8578493957e4f7b0c76e3} +0 -0
  40. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/af361e697648848dbf0282eba1d15c2f +0 -0
  41. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{80e5f8379c6b79f7685b1a2124c2c032 → af95fe3d35c9fe417700e8c3625329fe} +0 -0
  42. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/b89f385c2540cb58f04dbfed561d3902 +0 -0
  43. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{0a7202620c53dddd506d0a94e2800d40 → bc1864fd5bfa875243b05071735cbb82} +0 -0
  44. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{0d3ce22aa7fdd86ca27a4cf75e4f57d7 → bede0f0813e15081ea4ee32b640c92c4} +0 -0
  45. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/c1ba4e65491e8bb9fcdc38b22cb64aa9 +0 -0
  46. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cb741827a22668ecf975f78242076b6b +0 -0
  47. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  48. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8bab520aad78da438df1c428288cf229 → d3516b65bb025bc333e0f91647a7b119} +0 -0
  49. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  50. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/df7c1d81da90fb0287da1e283291dc81 +0 -0
  51. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f78ea05f6019d54c3572513ebae03556 +0 -0
  52. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8b79deab756579c0e92b62a86f6a5fef → f7c2f64864ec1995aee8dcead45d7f24} +0 -0
  53. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  54. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/fbbb5b21a4144f5e3efee9eda4fc38e5 +0 -0
  55. data/spec/dummy/rails-4.1.0/Gemfile +37 -0
  56. data/spec/dummy/rails-4.1.0/README.rdoc +28 -0
  57. data/spec/dummy/rails-4.1.0/Rakefile +6 -0
  58. data/spec/dummy/rails-4.1.0/app/assets/javascripts/application.js +16 -0
  59. data/spec/dummy/rails-4.1.0/app/assets/stylesheets/application.css +15 -0
  60. data/spec/dummy/rails-4.1.0/app/controllers/application_controller.rb +5 -0
  61. data/spec/dummy/rails-4.1.0/app/controllers/notify_user/notifications_controller.rb +9 -0
  62. data/spec/dummy/rails-4.1.0/app/helpers/application_helper.rb +2 -0
  63. data/spec/dummy/rails-4.1.0/app/models/user.rb +2 -0
  64. data/spec/dummy/rails-4.1.0/app/notifications/new_post_notification.rb +15 -0
  65. data/spec/dummy/rails-4.1.0/app/views/layouts/application.html.erb +14 -0
  66. data/spec/dummy/rails-4.1.0/app/views/notify_user/layouts/action_mailer.html.erb +39 -0
  67. data/spec/dummy/rails-4.1.0/app/views/notify_user/new_post_notification/action_mailer/notification.html.erb +1 -0
  68. data/spec/dummy/rails-4.1.0/bin/bundle +3 -0
  69. data/spec/dummy/rails-4.1.0/bin/rails +4 -0
  70. data/spec/dummy/rails-4.1.0/bin/rake +4 -0
  71. data/spec/dummy/rails-4.1.0/config/application.rb +23 -0
  72. data/spec/dummy/rails-4.1.0/config/boot.rb +4 -0
  73. data/spec/dummy/rails-4.1.0/config/database.yml +24 -0
  74. data/spec/dummy/rails-4.1.0/config/environment.rb +5 -0
  75. data/spec/dummy/rails-4.1.0/config/environments/development.rb +37 -0
  76. data/spec/dummy/rails-4.1.0/config/environments/production.rb +83 -0
  77. data/spec/dummy/rails-4.1.0/config/environments/test.rb +39 -0
  78. data/spec/dummy/rails-4.1.0/config/initializers/backtrace_silencers.rb +7 -0
  79. data/spec/dummy/rails-4.1.0/config/initializers/cookies_serializer.rb +3 -0
  80. data/spec/dummy/rails-4.1.0/config/initializers/filter_parameter_logging.rb +4 -0
  81. data/spec/dummy/rails-4.1.0/config/initializers/inflections.rb +16 -0
  82. data/spec/dummy/rails-4.1.0/config/initializers/mime_types.rb +4 -0
  83. data/spec/dummy/rails-4.1.0/config/initializers/notify_user.rb +14 -0
  84. data/spec/dummy/rails-4.1.0/config/initializers/session_store.rb +3 -0
  85. data/spec/dummy/rails-4.1.0/config/initializers/wrap_parameters.rb +14 -0
  86. data/spec/dummy/rails-4.1.0/config/locales/en.yml +23 -0
  87. data/spec/dummy/rails-4.1.0/config/routes.rb +56 -0
  88. data/spec/dummy/rails-4.1.0/config/secrets.yml +22 -0
  89. data/spec/dummy/rails-4.1.0/config.ru +4 -0
  90. data/spec/dummy/rails-4.1.0/db/migrate/20141102231432_create_users.rb +9 -0
  91. data/spec/dummy/rails-4.1.0/db/migrate/20141102231434012012157000_create_notify_user_notifications.rb +13 -0
  92. data/spec/dummy/rails-4.1.0/db/migrate/20141102231434013013078000_create_notify_user_unsubscribes.rb +10 -0
  93. data/spec/dummy/rails-4.1.0/db/migrate/20141102231434013013847000_create_notify_user_user_hashes.rb +12 -0
  94. data/spec/dummy/rails-4.1.0/db/schema.rb +53 -0
  95. data/spec/dummy/rails-4.1.0/db/seeds.rb +7 -0
  96. data/spec/dummy/rails-4.1.0/log/test.log +11433 -0
  97. data/spec/dummy/rails-4.1.0/public/404.html +67 -0
  98. data/spec/dummy/rails-4.1.0/public/422.html +67 -0
  99. data/spec/dummy/rails-4.1.0/public/500.html +66 -0
  100. data/spec/dummy/rails-4.1.0/public/favicon.ico +0 -0
  101. data/spec/dummy/rails-4.1.0/public/robots.txt +5 -0
  102. data/spec/dummy/rails-4.1.0/test/fixtures/users.yml +7 -0
  103. data/spec/dummy/rails-4.1.0/test/models/user_test.rb +7 -0
  104. data/spec/dummy/rails-4.1.0/test/test_helper.rb +13 -0
  105. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  106. data/spec/dummy/{rails-4.0.4/tmp/cache/assets/test/sprockets/13195a56ea8581e42f709ea01ea4604f → rails-4.1.0/tmp/cache/assets/test/sprockets/1bded108b40ef13c7e07be129e2cd83c} +0 -0
  107. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/1ebdd9dfe7e88e90bee37951e2da1ea2 +0 -0
  108. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/23fe609acece1521082ad6b8249f96b1 +0 -0
  109. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  110. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  111. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/3fa5cc1bc06bfb81887b971eb8d36258 +0 -0
  112. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/796287194e2490ae173cabd0f8e0fce7 +0 -0
  113. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/8d2563dcd2d59f9e020fc2623eda3999 +0 -0
  114. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/8ebc0d0c963e18c7c16e6e7f55fd379f +0 -0
  115. data/spec/dummy/{rails-4.0.4/tmp/cache/assets/test/sprockets/311d2b645a860b78f79ff156f12092ce → rails-4.1.0/tmp/cache/assets/test/sprockets/91d718eeae4552c702b8eafd9e8bbe76} +0 -0
  116. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/9e2c26ef339b5827a5c296acb284ab99 +0 -0
  117. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/a098882f88a8b3ca91d2efaada23dba3 +0 -0
  118. data/spec/dummy/{rails-4.0.4/tmp/cache/assets/test/sprockets/39651f0f2ac78423732234ebf092c632 → rails-4.1.0/tmp/cache/assets/test/sprockets/af361e697648848dbf0282eba1d15c2f} +0 -0
  119. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/b89f385c2540cb58f04dbfed561d3902 +0 -0
  120. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/c1ba4e65491e8bb9fcdc38b22cb64aa9 +0 -0
  121. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/cb741827a22668ecf975f78242076b6b +0 -0
  122. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  123. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  124. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/df7c1d81da90fb0287da1e283291dc81 +0 -0
  125. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/f031b3342a7246183ffa1bb7819f293e +0 -0
  126. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/f78ea05f6019d54c3572513ebae03556 +0 -0
  127. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  128. data/spec/dummy/rails-4.1.0/tmp/cache/assets/test/sprockets/fbbb5b21a4144f5e3efee9eda4fc38e5 +0 -0
  129. metadata +219 -57
  130. data/spec/dummy/rails-3.2.17/app/views/notify_user/new_post_notification/mobile_sdk/notification.html.erb +0 -1
  131. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/148f39f7dc2ea6cb194598111dbd4598 +0 -0
  132. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/68752c7ddc300bee3e9823db8befc306 +0 -0
  133. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/8698d6fed0ef2f173a377160752b959f +0 -0
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 46f3808446f8953d1c48361b0c6873b64bb2adf13fa7630f5c60ca2729d63a173d30c270d10fe595a88415a00a668a9d951f9400ebaaed2479f09d261c2c6624
15
+
16
+ test:
17
+ secret_key_base: 4c1514e381123e79b958f6983762ccd7796571e08b37cbc9e6a987e2069407fa494a828648cc96edbc882bf7a82453441e9881f0a4e37c930f7757d3abdf58f3
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :email
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ class CreateNotifyUserNotifications < ActiveRecord::Migration
2
+ def change
3
+ create_table :notify_user_notifications do |t|
4
+ t.string :type
5
+ t.integer :target_id
6
+ t.string :target_type
7
+ t.json :params
8
+ t.string :state
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ class CreateNotifyUserUnsubscribes < ActiveRecord::Migration
2
+ def change
3
+ create_table :notify_user_unsubscribes do |t|
4
+ t.string :type
5
+ t.integer :target_id
6
+ t.string :target_type
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ class CreateNotifyUserUserHashes < ActiveRecord::Migration
2
+ def change
3
+ create_table :notify_user_user_hashes do |t|
4
+ t.string :type
5
+ t.integer :target_id
6
+ t.string :target_type
7
+ t.string :token
8
+ t.boolean :active, default: true
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,53 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20141102231434013013847000) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "notify_user_notifications", force: true do |t|
20
+ t.string "type"
21
+ t.integer "target_id"
22
+ t.string "target_type"
23
+ t.json "params"
24
+ t.string "state"
25
+ t.datetime "created_at"
26
+ t.datetime "updated_at"
27
+ end
28
+
29
+ create_table "notify_user_unsubscribes", force: true do |t|
30
+ t.string "type"
31
+ t.integer "target_id"
32
+ t.string "target_type"
33
+ t.datetime "created_at"
34
+ t.datetime "updated_at"
35
+ end
36
+
37
+ create_table "notify_user_user_hashes", force: true do |t|
38
+ t.string "type"
39
+ t.integer "target_id"
40
+ t.string "target_type"
41
+ t.string "token"
42
+ t.boolean "active", default: true
43
+ t.datetime "created_at"
44
+ t.datetime "updated_at"
45
+ end
46
+
47
+ create_table "users", force: true do |t|
48
+ t.string "email"
49
+ t.datetime "created_at"
50
+ t.datetime "updated_at"
51
+ end
52
+
53
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)