Sha256: 6682ae506af3741a9604fef1f7a57c4dd31d800e39ecc08368f429393da086fc

Contents?: true

Size: 535 Bytes

Versions: 38

Compression:

Stored size: 535 Bytes

Contents

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    create_table :papermill_assets do |t|
      t.string   :file_file_name
      t.string   :file_content_type
      t.integer  :file_file_size
      t.integer  :position
      t.text     :description
      t.string   :copyright
      t.string   :title
      t.integer  :assetable_id
      t.string   :assetable_type
      t.string   :assetable_key
      t.string   :type
      t.timestamps
    end
  end
  
  def self.down
    drop_table :papermill_assets
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
BBenezech-papermill-0.1.0 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.1.1 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.1.2 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.1.3 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.1.4 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.2.0 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.2.1 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.2.2 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.3.0 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.4.0 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.4.1 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.5.0 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.5.2 generators/papermill/templates/migrate/papermill_migration.rb.erb
BBenezech-papermill-0.5.4 generators/papermill/templates/migrate/papermill_migration.rb.erb
papermill-0.14.3 generators/papermill_table/templates/migrate/papermill_migration.rb.erb
papermill-0.14.2 generators/papermill_table/templates/migrate/papermill_migration.rb.erb
papermill-0.14.1 generators/papermill_table/templates/migrate/papermill_migration.rb.erb
papermill-0.14.0 generators/papermill_table/templates/migrate/papermill_migration.rb.erb
papermill-0.13.2 generators/papermill_table/templates/migrate/papermill_migration.rb.erb
papermill-0.13.1 generators/papermill_table/templates/migrate/papermill_migration.rb.erb