Class: CreateTextTypes
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateTextTypes
- Defined in:
- pages/db/migrate/8_create_text_types.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'pages/db/migrate/8_create_text_types.rb', line 12 def self.down drop_table ConstructorPages::Types::TextType.table_name end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'pages/db/migrate/8_create_text_types.rb', line 2 def self.up create_table ConstructorPages::Types::TextType.table_name do |t| t.text :value, :default => "", :limit => 4294967295 t.references :field t.references :page t. end end |