Sha256: 4ccd65b156f7ead0b847aba9066673402a05bdc4ca433d0fde2f16a91b001f0a

Contents?: true

Size: 520 Bytes

Versions: 9

Compression:

Stored size: 520 Bytes

Contents

class CreateFaeImagesTable < ActiveRecord::Migration
  def change
    create_table(:fae_images) do |t|
      t.string :name
      t.string :asset
      t.references :imageable, polymorphic: true, index: true
      t.string :alt
      t.string :caption
      t.integer :position, default: 0
      t.string :attached_as, index: true
      t.boolean :on_stage, default: true
      t.boolean :on_prod, default: false
      t.integer :file_size
      t.boolean :required, default: false

      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fae-rails-1.7.1 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.7.0 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.6.0 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.5.1 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.5.0 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.4.1 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.4.0 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.3.1 db/migrate/20141008180718_create_fae_images_table.rb
fae-rails-1.3.0 db/migrate/20141008180718_create_fae_images_table.rb