Sha256: d943372c670d28683cc1165275d95ac32de4eac11c904cddbb5ee43853f0416f

Contents?: true

Size: 335 Bytes

Versions: 13

Compression:

Stored size: 335 Bytes

Contents

class CreateDucks < ActiveRecord::Migration
  def self.up
    create_table :resources, :force => true do |t|
      t.string :name
      t.text :description
      
      t.timestamps
    end
    
    add_index :resources, :name
    add_index :resources, [:name, :description]
  end
  
  def self.down
    drop_table :resources
  end
end

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
akitaonrails-dry_scaffold-0.3.3 generators/dry_model/prototypes/active_record_migration.rb
grimen-dry_scaffold-0.3.0 generators/dry_model/prototypes/active_record_migration.rb
grimen-dry_scaffold-0.3.1 generators/dry_model/prototypes/active_record_migration.rb
grimen-dry_scaffold-0.3.2 generators/dry_model/prototypes/active_record_migration.rb
grimen-dry_scaffold-0.3.3 generators/dry_model/prototypes/active_record_migration.rb
grimen-dry_scaffold-0.3.4 generators/dry_model/prototypes/active_record_migration.rb
grimen-dry_scaffold-0.3.5 generators/dry_model/prototypes/active_record_migration.rb
pelle-dry_scaffold-0.3.5 generators/dry_model/prototypes/active_record_migration.rb
dry_scaffold-0.3.8 generators/dry_model/prototypes/active_record_migration.rb
dry_scaffold-0.3.7 generators/dry_model/prototypes/active_record_migration.rb
dry_scaffold-0.3.6 generators/dry_model/prototypes/active_record_migration.rb
blakechambers-dry_scaffold-0.3.6 generators/dry_model/prototypes/active_record_migration.rb
michel-dry_scaffold-0.3.5 generators/dry_model/prototypes/active_record_migration.rb