Sha256: 18dfa5615b2d70e770d5093c38612f3714fd548fd97ee81318c5cf4532658179

Contents?: true

Size: 444 Bytes

Versions: 8

Compression:

Stored size: 444 Bytes

Contents

# This migration comes from tb_blog (originally 20120125181022)
class CreateSpudPostCategories < ActiveRecord::Migration
  def change
    create_table :spud_post_categories do |t|
      t.string :name
      t.timestamps
    end
    create_table :spud_post_categories_posts, id: false do |t|
      t.integer :spud_post_id
      t.integer :spud_post_category_id
    end
    add_index :spud_post_categories_posts, :spud_post_category_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tb_blog-1.4.4 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.4.3 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.4.2 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.3.5 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.4.1 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.4.0 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.3.4 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
tb_blog-1.4.beta1 spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb