aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorXinhui2016-11-15 16:39:26 +0100
committerXinhui2016-11-15 16:39:30 +0100
commitaa6a6f3aabb621e8697cc91bb9760d086678ca89 (patch)
tree83cd246ce0ed657746f50a5015c71159104e46b3 /db/migrate
parentcddd627eacd1a0bf252494fd7394438f958d53ab (diff)
downloadchouette-core-aa6a6f3aabb621e8697cc91bb9760d086678ca89.tar.bz2
Refactoring CleanUpResult as ActiveRecord model
Refs #1933
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20161115142708_create_clean_up_results.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20161115142708_create_clean_up_results.rb b/db/migrate/20161115142708_create_clean_up_results.rb
new file mode 100644
index 000000000..689fb1268
--- /dev/null
+++ b/db/migrate/20161115142708_create_clean_up_results.rb
@@ -0,0 +1,10 @@
+class CreateCleanUpResults < ActiveRecord::Migration
+ def change
+ create_table :clean_up_results do |t|
+ t.string :message_key
+ t.hstore :message_attributs
+ t.references :clean_up, index: true
+ t.timestamps
+ end
+ end
+end