Sha256: 5e038afe76fee85150ee24723d3831aad01817c924a8c9be6e62b25212393a7b

Contents?: true

Size: 366 Bytes

Versions: 58

Compression:

Stored size: 366 Bytes

Contents

class CreateDorsaleAlexandrieAttachmentTypes < ActiveRecord::Migration[5.0]
  def change
    create_table :dorsale_alexandrie_attachment_types do |t|
      t.string :name
      t.timestamps null: false
    end

    add_column :dorsale_alexandrie_attachments, :attachment_type_id, :integer
    add_index :dorsale_alexandrie_attachments, :attachment_type_id
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
dorsale-3.13.0 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.12.0 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.11.0 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.10.3 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.10.2 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.10.1 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.10.0 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.8 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.7 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.6 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.5 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.4 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.3 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.2 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.1 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.9.0 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.8.1 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.8.0 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.7.8 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb
dorsale-3.7.7 db/migrate/20160930073538_create_dorsale_alexandrie_attachment_types.rb