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-1.2.3.pre.ga.4 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.3.pre.ga.2 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.3.pre.ga.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.3.pre.ga.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.2 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.2.pre.0 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.1 lib/generators/declare_schema/migration/templates/migration.rb.erb
declare_schema-1.2.0 lib/generators/declare_schema/migration/templates/migration.rb.erb