6 lines
181 B
Ruby
6 lines
181 B
Ruby
class AddTweetIdToPost < ActiveRecord::Migration
|
|
def change
|
|
add_column :posts, :tweet_id, :string
|
|
add_index :posts, ['tweet_id'], :length => { "tweet_id" => 191 }
|
|
end
|
|
end
|