Sha256: 130d664d1f50e635bd6102715bdf7689a8a861c45caed9c8b5117928d44a5e04

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

class <%= config[:name].to_s.to_camel_case.pluralize %>Migration < Peictt::Migrations
  def change
    create_table :<%= config[:name].to_snake_case.pluralize %> do |t|
      t.integer :id, null: false, primary_key: true, auto_increment: true

      t.timestamps
    end
  end

  def down
    drop :<%= config[:name].to_snake_case.pluralize %>
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peictt-0.1.1 generators/templates/migration_template.rb