Sha256: 4761dcc6814c31b4a7eef5d01d706acdd7f10213f59bf3b8d338a451b9ada777

Contents?: true

Size: 343 Bytes

Versions: 13

Compression:

Stored size: 343 Bytes

Contents

Sequel.migration do
  change do

    create_table :<%= table_name %> do
      primary_key :id
      <%- if options[:timestamps] -%>
      DateTime :created_at
      DateTime :updated_at
      <%- end -%>
      <%- attributes.each do |attribute| -%>
      <%= attribute.type_class %> :<%= attribute.name %>
      <%- end -%>
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sequel-rails-1.2.3 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.2.2 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.2.1 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.2.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.1.1 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.1.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.0.1 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-1.0.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.17 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.16 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.15 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.14 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.13 lib/generators/sequel/model/templates/migration.rb.erb