From 64fddd5375fd03b1b9f49e487e05cb01a5968ded Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 6 Aug 2014 11:28:49 -0300 Subject: [PATCH] profile-suggestions: add migration to create initial suggestions --- db/migrate/20140805205626_bootstrap_profile_suggestions.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) create mode 100644 db/migrate/20140805205626_bootstrap_profile_suggestions.rb diff --git a/db/migrate/20140805205626_bootstrap_profile_suggestions.rb b/db/migrate/20140805205626_bootstrap_profile_suggestions.rb new file mode 100644 index 0000000..50d95c8 --- /dev/null +++ b/db/migrate/20140805205626_bootstrap_profile_suggestions.rb @@ -0,0 +1,9 @@ +class BootstrapProfileSuggestions < ActiveRecord::Migration + def up + ProfileSuggestion.generate_all_profile_suggestions + end + + def down + ProfileSuggestion.delete_all + end +end -- libgit2 0.21.2