Business intelligence made simple
Use datetime type in migration
Andrew Kane8abf52652593
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c2df80e5..2504ab2e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,6 @@## 2.2.7 (unreleased)+- Use `datetime` type in migration- Fixed unpermitted parameters on dashboard page- Fixed deprecation warnings in Ruby 2.7diff --git a/lib/generators/blazer/templates/install.rb.tt b/lib/generators/blazer/templates/install.rb.ttindex 661d079f..999b09fd 100644--- a/lib/generators/blazer/templates/install.rb.tt+++ b/lib/generators/blazer/templates/install.rb.tt@@ -14,7 +14,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_versiont.references :queryt.text :statementt.string :data_source- t.timestamp :created_at+ t.datetime :created_atendcreate_table :blazer_dashboards do |t|@@ -39,7 +39,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_versiont.text :slack_channelst.string :check_typet.text :message- t.timestamp :last_run_at+ t.datetime :last_run_att.timestamps null: falseendend