Sha256: 6fb0a2c4c97a844aa3a458879f54e6bef63edc9178c7f909d33a7fc48a834458

Contents?: true

Size: 686 Bytes

Versions: 3

Compression:

Stored size: 686 Bytes

Contents

# This migration comes from fae (originally 20141105214814)
class CreateFaeTextFields < ActiveRecord::Migration
  def change
    create_table :fae_text_fields do |t|
      t.references :contentable, polymorphic: true, index: true
      t.string :attatched_as, index: true
      t.string :label
      t.string :content
      t.integer :position, default: 0, index: true
      t.boolean :on_stage, default: true, index: true
      t.boolean :on_prod, default: false, index: true

      t.timestamps
    end

    add_index :fae_text_fields, :attatched_as
    add_index :fae_text_fields, :position
    add_index :fae_text_fields, :on_stage
    add_index :fae_text_fields, :on_prod
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fae-rails-1.2.4 spec/dummy/db/migrate/20141105221151_create_fae_text_fields.fae.rb
fae-rails-1.2.3 spec/dummy/db/migrate/20141105221151_create_fae_text_fields.fae.rb
fae-rails-1.2.2 spec/dummy/db/migrate/20141105221151_create_fae_text_fields.fae.rb