Skip to content

Commit

Permalink
Remove unneeded attributes from issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtr committed Apr 11, 2016
1 parent b3f6990 commit 56b715b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db/migrate/010_remove_chat_telegram_attributes_from_issues.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class RemoveChatTelegramAttributesFromIssues < ActiveRecord::Migration
def up
remove_index :issues, :telegram_id
remove_column :issues, :telegram_id
remove_column :issues, :telegram_chat_url
end

def down
add_column :issues, :telegram_chat_url, :string
add_column :issues, :telegram_id, :integer
add_index :issues, :telegram_id
end
end

0 comments on commit 56b715b

Please sign in to comment.