Sha256: 9371296b38332bd7fb35bfa69509f6bb00033968b3ea3321f12323ae81e4927d

Contents?: true

Size: 199 Bytes

Versions: 22

Compression:

Stored size: 199 Bytes

Contents

class Create<%= class_name %>Resource < ActiveRecord::Migration
  def change
    create_table :<%= file_name.pluralize %> do |t|
      t.string :name
      t.timestamps null: false
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
monarchy-2.7.0 lib/generators/templates/migrations/resource.rb
monarchy-2.6.1 lib/generators/templates/migrations/resource.rb
monarchy-2.6.0 lib/generators/templates/migrations/resource.rb
monarchy-2.5.0 lib/generators/templates/migrations/resource.rb
monarchy-2.4.0 lib/generators/templates/migrations/resource.rb
monarchy-2.3.0 lib/generators/templates/migrations/resource.rb
monarchy-2.2.2 lib/generators/templates/migrations/resource.rb
monarchy-2.2.1 lib/generators/templates/migrations/resource.rb
monarchy-2.2.0 lib/generators/templates/migrations/resource.rb
monarchy-2.1.0 lib/generators/templates/migrations/resource.rb
monarchy-2.0.8 lib/generators/templates/migrations/resource.rb
monarchy-2.0.7 lib/generators/templates/migrations/resource.rb
monarchy-2.0.6 lib/generators/templates/migrations/resource.rb
monarchy-2.0.5 lib/generators/templates/migrations/resource.rb
monarchy-2.0.4 lib/generators/templates/migrations/resource.rb
monarchy-2.0.0.pre.beta.1 lib/generators/templates/migrations/resource.rb
monarchy-1.1.5 lib/generators/templates/migrations/resource.rb
monarchy-1.1.4 lib/generators/templates/migrations/resource.rb
monarchy-1.1.3 lib/generators/templates/migrations/resource.rb
monarchy-1.0.0 lib/generators/templates/migrations/resource.rb