Sha256: 95fb7290de513b4b6645d293d53f42ad499b7d608088213c1b7c1efaae105386

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

# encoding: UTF-8

class CreatePostsTable < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.column :title, :string
    end
  end
end

class CreateCommentsTable < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.references :post
    end
  end
end

class CreateAuthorsTable < ActiveRecord::Migration
  def change
    create_table :authors do |t|
      t.references :comment
      t.references :collab_posts
    end
  end
end

class CreateFavoritesTable < ActiveRecord::Migration
  def change
    create_table :favorites do |t|
      t.references :post
    end
  end
end

class CreateCollabPostsTable < ActiveRecord::Migration
  def change
    create_table :collab_posts do |t|
      t.references :authors
    end
  end
end

class CreateCardsTable < ActiveRecord::Migration
  def change
    create_table :cards
  end
end

class CreateCardLocationsTable < ActiveRecord::Migration
  def change
    create_table :card_locations do |t|
      t.references :location
      t.references :card, polymorphic: true
    end
  end
end

class CreateLocationsTable < ActiveRecord::Migration
  def change
    create_table :locations
  end
end

class CreateCommunityTicketsTable < ActiveRecord::Migration
  def change
    create_table :community_tickets
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arel-helpers-2.3.0 spec/env/migrations.rb
arel-helpers-2.2.0 spec/env/migrations.rb