Sha256: f08605ee503ab4407114e5c5d50d45aec1d8dd6e8142f8c36a0652ef74e5a843

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

class CreateIndices < ActiveRecord::Migration
  def change
    create_table :indices do |t|
      t.string :name
      t.string :title
      t.string :slug
      t.string :page_title
      t.integer :priority
      t.text :keywords
      t.text :page_description
      t.integer :owner_id
      t.string :owner_type

      t.timestamps
    end
    add_index :indices, :slug, :unique => true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sbdevcore-0.2.12 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.11 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.10 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.9 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.8 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.7 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.6 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.5 db/migrate/20110811000613_create_indices.rb
sbdevcore-0.2.4 db/migrate/20110811000613_create_indices.rb