Sha256: b5b0b94a10a3cda3606ed77981c3284afc59b07af9f3517f872d47ff8cd9fdff
Contents?: true
Size: 475 Bytes
Versions: 27
Compression:
Stored size: 475 Bytes
Contents
class Create<%= model_name_pluralize_underscored.camelize %> < ActiveRecord::Migration def change create_table :<%= model_name_pluralize_underscored %>, force: true do |t| <%- columns = db_columns.reject{|k| k.in?(["created_at", "updated_at"])} -%> <%- columns.each do |column_name, column_attrs| -%> t.<%= column_attrs[:type] %> :<%= column_name %>, null: <%= column_attrs[:null] %> <%- end -%> t.timestamps null: false end end end
Version data entries
27 entries across 27 versions & 1 rubygems