Sha256: 8d48dabb0d7feb575b9c74e25b10aadc549709ecc729d3b480744bbca6aa19a4

Contents?: true

Size: 477 Bytes

Versions: 9

Compression:

Stored size: 477 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
      t.integer :image_id
      t.timestamps
    end
    add_index :georgia_contents, [:contentable_type, :contentable_id]
    add_index :georgia_contents, :locale
    add_index :georgia_contents, :image_id
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
georgia-0.7.8 db/migrate/002_create_georgia_contents.rb
georgia-0.7.7 db/migrate/002_create_georgia_contents.rb
georgia-0.7.6 db/migrate/002_create_georgia_contents.rb
georgia-0.7.5 db/migrate/002_create_georgia_contents.rb
georgia-0.7.4 db/migrate/002_create_georgia_contents.rb
georgia-0.7.3 db/migrate/002_create_georgia_contents.rb
georgia-0.7.2 db/migrate/002_create_georgia_contents.rb
georgia-0.7.1 db/migrate/002_create_georgia_contents.rb
georgia-0.7.0 db/migrate/002_create_georgia_contents.rb