about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20181203003808_create_accounts_tags_join_table.rb8
-rw-r--r--db/migrate/20181203021853_add_discoverable_to_accounts.rb5
-rw-r--r--db/migrate/20181204193439_add_last_status_at_to_account_stats.rb5
-rw-r--r--db/migrate/20181204215309_create_account_tag_stats.rb11
4 files changed, 0 insertions, 29 deletions
diff --git a/db/migrate/20181203003808_create_accounts_tags_join_table.rb b/db/migrate/20181203003808_create_accounts_tags_join_table.rb
deleted file mode 100644
index 3c275c2b7..000000000
--- a/db/migrate/20181203003808_create_accounts_tags_join_table.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class CreateAccountsTagsJoinTable < ActiveRecord::Migration[5.2]
-  def change
-    create_join_table :accounts, :tags do |t|
-      t.index [:account_id, :tag_id]
-      t.index [:tag_id, :account_id], unique: true
-    end
-  end
-end
diff --git a/db/migrate/20181203021853_add_discoverable_to_accounts.rb b/db/migrate/20181203021853_add_discoverable_to_accounts.rb
deleted file mode 100644
index 5bbae2203..000000000
--- a/db/migrate/20181203021853_add_discoverable_to_accounts.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddDiscoverableToAccounts < ActiveRecord::Migration[5.2]
-  def change
-    add_column :accounts, :discoverable, :boolean
-  end
-end
diff --git a/db/migrate/20181204193439_add_last_status_at_to_account_stats.rb b/db/migrate/20181204193439_add_last_status_at_to_account_stats.rb
deleted file mode 100644
index 946662707..000000000
--- a/db/migrate/20181204193439_add_last_status_at_to_account_stats.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddLastStatusAtToAccountStats < ActiveRecord::Migration[5.2]
-  def change
-    add_column :account_stats, :last_status_at, :datetime
-  end
-end
diff --git a/db/migrate/20181204215309_create_account_tag_stats.rb b/db/migrate/20181204215309_create_account_tag_stats.rb
deleted file mode 100644
index 15ed8587e..000000000
--- a/db/migrate/20181204215309_create_account_tag_stats.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class CreateAccountTagStats < ActiveRecord::Migration[5.2]
-  def change
-    create_table :account_tag_stats do |t|
-      t.belongs_to :tag, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
-      t.bigint :accounts_count, default: 0, null: false
-      t.boolean :hidden, default: false, null: false
-
-      t.timestamps
-    end
-  end
-end