Sha256: 4bfd9f2caffe19f2f8a6ce90aa0ecd8b46f62118e09330c3d5b6165589f91640
Contents?: true
Size: 525 Bytes
Versions: 11
Compression:
Stored size: 525 Bytes
Contents
class CreateVimeoMetaCache < ActiveRecord::Migration def self.up create_table :vimeo_meta_cache do |t| t.string :vid, :unique => true t.string :title t.text :description t.integer :image_id t.timestamps end add_index :vimeo_meta_cache, [:vid] load(Rails.root.join('db', 'seeds', 'vimeo_videos.rb')) end def self.down UserPlugin.destroy_all({:name => "vimeo_videos"}) Page.delete_all({:link_url => "/vimeo_videos"}) drop_table :vimeo_meta_cache end end
Version data entries
11 entries across 11 versions & 1 rubygems