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.7.2 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.7.1 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.7.0 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.14 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.12 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.11 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.10 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.9 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.8 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.7 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.6 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.5 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.4 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.3 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.2 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.1 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.6.0 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.5.0 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.11 db/migrate/01_create_effective_regions.rb.erb
effective_regions-1.4.10 db/migrate/01_create_effective_regions.rb.erb