From 64d5d157b321a981f7dd4a030325f1cdd2685879 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 20 Oct 2015 18:06:44 -0400 Subject: [PATCH] More ugly fixes --- db/migrate/20151020183446_create_stats.rb | 2 +- db/migrate/20151020220202_fix_state_to_stat.rb | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 db/migrate/20151020220202_fix_state_to_stat.rb diff --git a/db/migrate/20151020183446_create_stats.rb b/db/migrate/20151020183446_create_stats.rb index b5cafd0..79c6682 100644 --- a/db/migrate/20151020183446_create_stats.rb +++ b/db/migrate/20151020183446_create_stats.rb @@ -5,7 +5,7 @@ class CreateStats < ActiveRecord::Migration t.integer :max t.integer :awaken_min t.integer :awaken_make - t.references :state_type, index: true, foreign_key: true + t.references :stat_type, index: true, foreign_key: true t.timestamps null: false end diff --git a/db/migrate/20151020220202_fix_state_to_stat.rb b/db/migrate/20151020220202_fix_state_to_stat.rb deleted file mode 100644 index 5a69c3a..0000000 --- a/db/migrate/20151020220202_fix_state_to_stat.rb +++ /dev/null @@ -1,5 +0,0 @@ -class FixStateToStat < ActiveRecord::Migration - def change - rename_column :stats, :state_type_id, :stat_type_id - end -end