Sha256: 272575aac0eb33b5172feae67d7de50c9418984c4601d4026da50a2577e9074b

Contents?: true

Size: 485 Bytes

Versions: 11

Compression:

Stored size: 485 Bytes

Contents

# This migration comes from fae (originally 20141021181327)
class CreateFaeFiles < ActiveRecord::Migration
  def change
    create_table :fae_files do |t|
      t.string :name
      t.string :asset
      t.references :fileable, polymorphic: true, index: true
      t.integer :file_size
      t.integer :position, default: 0
      t.string :attached_as, index: true
      t.boolean :on_stage, default: true
      t.boolean :on_prod, default: false

      t.timestamps
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fae-rails-1.6.0 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.5.1 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.5.0 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.4.1 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.4.0 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.3.1 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.3.0 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.2.5 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.2.4 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.2.3 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb
fae-rails-1.2.2 spec/dummy/db/migrate/20141021181927_create_fae_files.fae.rb