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

ruby-on-rails-server.migrate.mustache Maven / Gradle / Ivy

=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