Sha256: 04732510bc12dd56fc015799746c403a8579363bb54b0a79aed55a165a3d5a2e

Contents?: true

Size: 271 Bytes

Versions: 8

Compression:

Stored size: 271 Bytes

Contents

class Create<%= table_name.camelize %>Model < ActiveRecord::Migration
  def change
    create_table(:<%= table_name %>) do |t|
<%= migration_data -%>
      t.timestamps
    end
    add_index :<%= table_name %>, :email, unique: true

<%= create_default_admin %>
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.7.0.0 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/templates/migration.rb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/templates/migration.rb