Sha256: f0817b27a6c3cefd28cd08a1b21331297320b34da7833f717ca0c7925fdbc453

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

# For details on Sequel migrations see 
# http://sequel.rubyforge.org/
# http://code.google.com/p/ruby-sequel/wiki/Migrations

class <%= class_name %>Migration < Sequel::Migration

  def up
<% if model -%>
    create_table :<%= table_name -%> do
      primary_key :id
<% attributes.each do |name, type| -%>
      <%= type %> :<%= name %>
<% end -%>
    end
<% end -%>
  end

  def down
<% if model -%>
    drop_table :<%= table_name %>
<% end -%>
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thorero-gen-0.9.4 templates/component/migration/sequel/schema/migrations/%file_name%.rb