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