Sha256: 99457c4d009fafef62d5b88442016984975687f2d8e39b69db8bc7d49f280acb

Contents?: true

Size: 255 Bytes

Versions: 43

Compression:

Stored size: 255 Bytes

Contents

class CreateAdminpanel<%= class_name.pluralize %> < ActiveRecord::Migration
  def change
    create_table :adminpanel_<%= lower_name.pluralize %> do |t|

      t.integer :<%= reference_name %>_id
      t.string :file

      t.timestamps
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
adminpanel-3.6.1 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.6.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.5.1 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.5.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.7 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.6 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.5 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.4 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.3 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.2 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.1 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.4.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.3.4 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.3.3 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.3.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.2.1 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.2.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.1.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-3.0.0 lib/generators/adminpanel/gallery/templates/gallery_migration.rb
adminpanel-2.6.1 lib/generators/adminpanel/gallery/templates/gallery_migration.rb