Sha256: d7449c41402fcd51639ba7a806591bf908b8739e9d88747525069ee134a99670

Contents?: true

Size: 530 Bytes

Versions: 38

Compression:

Stored size: 530 Bytes

Contents

class CreateTweets < ActiveRecord::Migration
  def self.up
    create_table :tweets do |t|
      t.datetime :occurred_at
      t.boolean :truncated, :favorited, :user_protected, :default => false
      t.integer :twitter_id, :user_id, :in_reply_to_status_id, :in_reply_to_user_id, :user_followers_count
      t.text :body
      t.string :source, :user_name, :user_screen_name, :user_location, :user_description, :user_profile_image_url, :user_url
      t.timestamps
    end
  end

  def self.down
    drop_table :tweets
  end
end

Version data entries

38 entries across 38 versions & 15 rubygems

Version Path
anthonycrumley-twitter-0.3.8 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
baron-twitter-0.4.2 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
billymeltdown-twitter-0.3.8.1 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
billymeltdown-twitter-0.4.2 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
billymeltdown-twitter-0.4.3 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
drnic-twitter-0.4.4.1 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dschn-twitter-0.3.7.1 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dschn-twitter-0.3.7.2 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dschn-twitter-0.4.1.1 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dschn-twitter-0.4.1.2 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dschn-twitter-0.4.1.3 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dschn-twitter-0.4.1 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dustin-twitter-0.3.2.1 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dustin-twitter-0.3.2.2 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
dustin-twitter-0.3.7 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
gilesbowkett-gilesbowkett-twitter-0.4.4 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
gilesbowkett-twitter-0.4.3 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
gilesbowkett-twitter-0.4.5 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
handcrafted-twitter-0.4.0 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
handcrafted-twitter-0.4.2 lib/twitter/cli/migrations/20080722194508_create_tweets.rb