Class: AddAccountIdToTweets

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb', line 6

def self.down
  remove_column :tweets, :account_id
end

.upObject



2
3
4
# File 'lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb', line 2

def self.up
  add_column :tweets, :account_id, :integer
end