Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateTweetTable < Sequel::Migration
- def up
- create_table :tweets do
- primary_key :id
- String :username
- String :location
- Time :created_at
- Time :time_zone
- String :lang
- String :text
- Integer :guid
- Integer :in_reply_to_user_id
- Integer :in_reply_to_status_id
- String :retweeted
- String :protected
- String :verified
- String :description
- Integer :followers_count
- String :url
- String :name
- Integer :statuses_count
- String :screen_name
- String :place
- Integer :retweet_count
- Integer :favourites_count
- String :geo_enabled
- Integer :friends_count
- String :entities
- String :source
- String :geo
- String :coordinates
- end
- end
- def down
- drop_table(:tweets)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment