Sha256: 61f5941894ba1f54dbaa7d01531d08ff1be5b0692f05afb5b72a4aad45175b8f

Contents?: true

Size: 529 Bytes

Versions: 36

Compression:

Stored size: 529 Bytes

Contents

class CreateEffectiveRegions < ActiveRecord::Migration
  def self.up
    create_table <%= @regions_table_name %> do |t|
      t.string :regionable_type
      t.integer :regionable_id

      t.string :title
      t.text :content
      t.text :snippets

      t.datetime :updated_at
      t.datetime :created_at
    end

    add_index <%= @regions_table_name %>, [:regionable_type, :regionable_id]
    add_index <%= @regions_table_name %>, :regionable_id
  end

  def self.down
    drop_table <%= @regions_table_name %>
  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
effective_regions-1.4.9 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.8 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.7 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.6 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.5 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.3 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.2 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.1 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.0 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.2.3 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.2.2 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.2.1 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.2.0 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.1.1 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.1.0 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.0.0 db/migrate/01_create_effective_regions.rb.erb