Sha256: 3ab933c32c015a88ac730bc2d8a0a9845c1f4f3ad40a408d95f106c95bae636c
Contents?: true
Size: 1.41 KB
Versions: 9
Compression:
Stored size: 1.41 KB
Contents
class DropUnusedTables < ActiveRecord::Migration def up remove_column :deploys, :environment_id drop_table :historical_heads remove_column :projects, :gemnasium_slug remove_column :pull_requests, :labels remove_column :pull_requests, :old_labels remove_column :releases, :environment_id remove_column :tasks, :checked_out_at remove_column :tasks, :checked_out_by_id remove_column :tickets, :sprint_id remove_column :tickets, :checked_out_at remove_column :tickets, :checked_out_by_id remove_column :users, :old_environments_subscribed_to end def down add_column :deploys, :environment_id, :integer create_table :historical_heads do |t| t.integer :project_id, null: false t.hstore :branches, null: false, default: {} t.timestamps end add_column :projects, :gemnasium_slug, :string add_column :pull_requests, :old_labels, :text, default: "", null: false add_column :pull_requests, :labels, :text, array: true, default: [], null: false add_column :releases, :environment_id, :integer add_column :tasks, :checked_out_at, :timestamp add_column :tasks, :checked_out_by_id, :integer add_column :tickets, :sprint_id, :integer add_column :tickets, :checked_out_at, :timestampd add_column :tickets, :checked_out_by_id, :integer add_column :users, :old_environments_subscribed_to, :string, default: "", null: false end end
Version data entries
9 entries across 9 versions & 1 rubygems