Sha256: 78c1aa2563c4f556971f1d53084202dc3f5d9962e13e4a0eee163cd52481f396

Contents?: true

Size: 564 Bytes

Versions: 14

Compression:

Stored size: 564 Bytes

Contents

class CreateSites < ActiveRecord::Migration
  def self.up
    create_table :sites do |t|
      t.string :name
      t.string :slogan
      t.string :email
      t.text :mision
      t.text :footer
      t.string :style
      t.string :logo_file_name
      t.string :logo_content_type
      t.integer :logo_file_size
      t.datetime :logo_updated_at
      t.string :icon_file_name
      t.string :icon_content_type
      t.integer :icon_file_size
      t.datetime :icon_updated_at

      t.timestamps
    end
  end

  def self.down
    drop_table :sites
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.2.1 lib/generators/squeezer/templates/db/migrate/create_sites.rb
squeezer-0.2.0 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.2.0 lib/generators/squeezer/templates/db/migrate/create_sites.rb
squeezer-0.1.11 lib/generators/squeezer/templates/db/migrate/create_sites.rb
squeezer-0.1.11 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.1.7 lib/generators/squeezer/templates/db/migrate/create_sites.rb
squeezer-0.1.7 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.1.6 lib/generators/squeezer/templates/db/migrate/create_sites.rb
squeezer-0.1.6 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.1.5 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.1.5 lib/generators/squeezer/templates/db/migrate/create_sites.rb
squeezer-0.1.4 lib/generators/squeezer/templates/db/migrate/sites.rb
squeezer-0.1.4 lib/generators/squeezer/templates/db/migrate/create_sites.rb