Sha256: 6fdb6b72e67c814046c4237939c4a8be8fa8c52abb237e034c96385fa2f9e249

Contents?: true

Size: 343 Bytes

Versions: 39

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

39 entries across 39 versions & 3 rubygems

Version Path
sequel-rails-0.9.12 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.11 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.10 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.9 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.8 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.7 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.6 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.5 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.4 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.3 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.2 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.9.1 lib/generators/sequel/model/templates/migration.rb.erb
vizzuality-sequel-rails-0.3.7 lib/generators/sequel/model/templates/migration.rb
sequel-rails-0.9.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.8.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.7.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.6.1 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.6.0 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.5.1 lib/generators/sequel/model/templates/migration.rb.erb
sequel-rails-0.5.0 lib/generators/sequel/model/templates/migration.rb.erb