Skip to content

Business intelligence made simple

suppress deprecation warnings when creating tables (#92)

ts-31560d08c432a4b1
diff --git a/lib/generators/blazer/templates/install.rb b/lib/generators/blazer/templates/install.rb
index b710bcac..16bc3ad2 100644
--- a/lib/generators/blazer/templates/install.rb
+++ b/lib/generators/blazer/templates/install.rb
@@ -6,7 +6,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
t.text :description
t.text :statement
t.string :data_source
- t.timestamps
+ t.timestamps null: false
end
create_table :blazer_audits do |t|
@@ -14,20 +14,20 @@ class <%= migration_class_name %> < ActiveRecord::Migration
t.references :query
t.text :statement
t.string :data_source
- t.timestamp :created_at
+ t.timestamp :created_at, null: false
end
create_table :blazer_dashboards do |t|
t.references :creator
t.text :name
- t.timestamps
+ t.timestamps null: false
end
create_table :blazer_dashboard_queries do |t|
t.references :dashboard
t.references :query
t.integer :position
- t.timestamps
+ t.timestamps null: false
end
create_table :blazer_checks do |t|
@@ -39,7 +39,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
t.string :check_type
t.text :message
t.timestamp :last_run_at
- t.timestamps
+ t.timestamps null: false
end
end
end