From a31ecc80ac27a5b413a479c5005fae53e690cd1b Mon Sep 17 00:00:00 2001 From: joshua stein Date: Fri, 24 Jul 2015 00:35:23 -0500 Subject: [PATCH] change tags.hotness_mod to float --- db/migrate/20150224035617_hotness_mod_to_float.rb | 5 +++++ db/schema.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20150224035617_hotness_mod_to_float.rb diff --git a/db/migrate/20150224035617_hotness_mod_to_float.rb b/db/migrate/20150224035617_hotness_mod_to_float.rb new file mode 100644 index 0000000..fe46b7e --- /dev/null +++ b/db/migrate/20150224035617_hotness_mod_to_float.rb @@ -0,0 +1,5 @@ +class HotnessModToFloat < ActiveRecord::Migration + def change + change_column :tags, :hotness_mod, :float + end +end diff --git a/db/schema.rb b/db/schema.rb index c3a4880..5b9ea68 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -154,7 +154,7 @@ ActiveRecord::Schema.define(version: 20150313040930) do t.boolean "privileged", default: false t.boolean "is_media", default: false t.boolean "inactive", default: false - t.integer "hotness_mod", default: 0 + t.float "hotness_mod", limit: 24, default: 0.0 end add_index "tags", ["tag"], name: "tag", unique: true, using: :btree