All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rails5.migrate.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
=begin
{{> info}}
=end

class InitTables < ActiveRecord::Migration
  def change{{#models}}{{#model}}
    create_table "{{classFilename}}".pluralize.to_sym, id: false do |t|{{#vars}}{{#isContainer}}
      t.string :{{name}}{{/isContainer}}{{^isContainer}}
      t.{{datatype}} :{{{name}}}{{/isContainer}}{{/vars}}

      t.timestamps
    end
{{/model}}{{/models}}
  end
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy