Sha256: 2fa6066522fa43df8a162a23ffbdd5b15e534762ee25ae5ce3f79face187ccf0

Contents?: true

Size: 207 Bytes

Versions: 48

Compression:

Stored size: 207 Bytes

Contents

class <%= @migration_class_name %> < ActiveRecord::Migration[4.2]
  def self.up
<%= @up.presence or raise "no @up given!" %>
  end

  def self.down
<%= @down.presence or raise "no @down given!" %>
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
declare_schema-2.3.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-2.3.0.pre.is.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-2.2.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-2.2.0.colin.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-2.2.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-2.1.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-2.1.0.pre.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.4.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.4.0.colin.11 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.6 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.6.colin.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.5 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.5.colin.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.4.0.colin.9 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.4 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.4.colin.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.4.0.colin.8 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.3 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.3.3.colin.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.4.0.colin.7 lib/generators/declare_schema/migration/templates/migration.rb.erb