Sha256: bab03811822cf063ac7b1285062114d75bf26f73606481b53f6dc16af36fc3ab

Contents?: true

Size: 273 Bytes

Versions: 12

Compression:

Stored size: 273 Bytes

Contents

class InlineFormsCreate<%= table_name.camelize %> < ActiveRecord::Migration[6.1]

  def self.up
    create_table :<%= table_name + @primary_key_option %> do |t|
<%= @columns -%>
      t.timestamps
    end
  end

  def self.down
    drop_table :<%= table_name %>
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
inline_forms-6.2.14 lib/generators/templates/migration.erb
inline_forms-6.2.12 lib/generators/templates/migration.erb
inline_forms-6.2.11 lib/generators/templates/migration.erb
inline_forms-6.2.10 lib/generators/templates/migration.erb
inline_forms-6.2.9 lib/generators/templates/migration.erb
inline_forms-6.2.7 lib/generators/templates/migration.erb
inline_forms-6.2.6 lib/generators/templates/migration.erb
inline_forms-6.2.5 lib/generators/templates/migration.erb
inline_forms-6.2.4 lib/generators/templates/migration.erb
inline_forms-6.2.3 lib/generators/templates/migration.erb
inline_forms-6.2.2 lib/generators/templates/migration.erb
inline_forms-6.2.1 lib/generators/templates/migration.erb