Skip to content

Business intelligence made simple

Added migrations to generator

Andrew Kane78284b6502f0
diff --git a/lib/generators/blazer/templates/install.rb b/lib/generators/blazer/templates/install.rb
index a1abce32..0ca6eb5b 100644
--- a/lib/generators/blazer/templates/install.rb
+++ b/lib/generators/blazer/templates/install.rb
@@ -21,5 +21,17 @@ class <%= migration_class_name %> < ActiveRecord::Migration
t.text :emails
t.timestamps
end
+
+ create_table :blazer_dashboards do |t|
+ t.text :name
+ t.timestamps
+ end
+
+ create_table :blazer_dashboard_queries do |t|
+ t.references :blazer_dashboard
+ t.references :blazer_query
+ t.integer :position
+ t.timestamps
+ end
end
end