Sha256: 5ee3729fddfd3a6a55d04e4f2b0242841e9caee84d1eace8d52edb0f985beac0
Contents?: true
Size: 748 Bytes
Versions: 3
Compression:
Stored size: 748 Bytes
Contents
class CreatePods < ActiveRecord::Migration def self.up create_table :pods do |t| t.string :name t.text :body t.string :url t.integer :image_id t.string :pod_type t.integer :portfolio_entry_id t.integer :video_id t.integer :position t.timestamps end add_index :pods, :id add_index :pods, :image_id add_index :pods, :pod_type add_index :pods, :portfolio_entry_id add_index :pods, :video_id load(Rails.root.join('db', 'seeds', 'pods.rb')) end def self.down if defined?(UserPlugin) UserPlugin.destroy_all({:name => "pods"}) end #if defined?(Page) # Page.delete_all({:link_url => "/pods"}) #end drop_table :pods end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-pods-1.0.3 | db/migrate/create_pods.rb |
refinerycms-pods-1.0.2 | db/migrate/create_pods.rb |
refinerycms-pods-1.0.1 | db/migrate/create_pods.rb |