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