Sha256: 97e272f3aee14de47a367cd841baec12451f42e1778062d6fe184eb6de02efff

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

class CreateGeorgiaContents < ActiveRecord::Migration

  def change
    create_table :georgia_contents do |t|
      t.string :locale, null: false
      t.string :title
      t.text :text
      t.text :excerpt
      t.references :contentable, polymorphic: true, index: true
      t.references :image, index: true
      t.timestamps
    end
    add_index :georgia_contents, :locale
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 db/migrate/002_create_georgia_contents.rb