Sha256: caa25a5f4c7123b6427b69f9f6b4fd9bfa48dd60c7313270f4e1418afed97976

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

# This migration comes from tb_blog (originally 20150116194722)
class DropSpudPostSites < ActiveRecord::Migration
  def up
    drop_table :spud_post_sites
  end
  def down
    create_table :spud_post_sites do |t|
      t.integer :spud_post_id, :null => false
      t.integer :spud_site_id, :null => false
      t.timestamps
    end
    add_index :spud_post_sites, :spud_post_id
    add_index :spud_post_sites, :spud_site_id  
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tb_blog-1.3.3 spec/dummy/db/migrate/20150116195007_drop_spud_post_sites.tb_blog.rb
tb_blog-1.3.2 spec/dummy/db/migrate/20150116195007_drop_spud_post_sites.tb_blog.rb
tb_blog-1.3.1 spec/dummy/db/migrate/20150116195007_drop_spud_post_sites.tb_blog.rb
tb_blog-1.3.0 spec/dummy/db/migrate/20150116195007_drop_spud_post_sites.tb_blog.rb