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

Version Path
refinerycms-vimeo-videos-0.1.9.rc3 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.9.rc2 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.9.rc1 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.8.1 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.8 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.7 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.6 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.5 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.4 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.3 db/migrate/create_vimeo_meta_cache.rb
refinerycms-vimeo-videos-0.1.2 db/migrate/create_vimeo_meta_cache.rb