Sha256: 7c2d25d2b9e2ae70d705f60c41ba14065361f1f00cdfa4e27fa52a06154e5fb2

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 Bytes

Contents

class CreateOverrides < ActiveRecord::Migration
  def change
    create_table :overrides do |t|
      t.string :context_name
      t.string :overrideable_type
      t.integer :overrideable_id
      t.string :field_name
      t.text :field_value

      t.timestamps
    end
    add_index :overrides, :context_name
    add_index :overrides, :overrideable_type
    add_index :overrides, :overrideable_id
    add_index :overrides, :field_name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
two_faced-0.0.2 lib/generators/two_faced/install/templates/migrations/1_create_overrides.rb
two_faced-0.0.2.alpha lib/generators/two_faced/install/templates/migrations/1_create_overrides.rb