Sha256: 78fe2a58898bd2c0925ff66ec845ac05a58401d59ebf56e220592e9879d3a329

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

class CreateDownloads < ActiveRecord::Migration
  def up
    create_table :downloads do |t|
      t.string :name
      t.string :thing
      t.timestamps
    end
    Download.create_translation_table!({ name: :string })
  end

  def down
    drop_table :downnloads
    Download.drop_translation_table!
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tkh_illustrations-0.9.6 lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_downloads.rb
tkh_illustrations-0.9.5 lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_downloads.rb
tkh_illustrations-0.9.4 lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_downloads.rb