Sha256: 10a54b2a78d2e82bb6a91f2912fdc0eea0266c952c25abdb3f652865c2d32c43

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

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

  def self.up
    #create_table :<%= table_name + ", :id => " + @create_id.to_s %> do |t|
    create_table :<%= table_name %> do |t|
<%= @columns -%>
      t.timestamps
    end
  end

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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inline_forms-5.0.20 lib/generators/templates/migration.erb
inline_forms-5.0.19 lib/generators/templates/migration.erb
inline_forms-5.0.18 lib/generators/templates/migration.erb
inline_forms-5.0.17 lib/generators/templates/migration.erb
inline_forms-5.0.16 lib/generators/templates/migration.erb
inline_forms-5.0.15 lib/generators/templates/migration.erb