Class: CreateSites
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSites
- Defined in:
- lib/generators/squeezer/templates/db/migrate/sites.rb,
lib/generators/squeezer/templates/db/migrate/create_sites.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
23 24 25 |
# File 'lib/generators/squeezer/templates/db/migrate/sites.rb', line 23 def self.down drop_table :sites end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/squeezer/templates/db/migrate/sites.rb', line 2 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. end end |