Sha256: 0feefcbdad5a56d336f27c88c28e15ccda5ad0469fa6b95606f995652337b172

Contents?: true

Size: 243 Bytes

Versions: 70

Compression:

Stored size: 243 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.column :title, :string, :default => ''
      t.column :body, :text, :default => ''
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

70 entries across 70 versions & 22 rubygems

Version Path
akitaonrails-resource_controller-0.5.2 test/db/migrate/001_create_posts.rb
akitaonrails-resource_controller-0.5.3 test/db/migrate/001_create_posts.rb
csmosx-resource_controller-0.6.6 test/db/migrate/001_create_posts.rb
csmosx-resource_controller-0.6.7 test/db/migrate/001_create_posts.rb
dkubb-resource_controller-0.6.5 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.4.10 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.4.12 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.4.9 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.5.2 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.5.3 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.5.5 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.5.6 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.6.0 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.6.1 test/db/migrate/001_create_posts.rb
giraffesoft-resource_controller-0.6.5 test/db/migrate/001_create_posts.rb
jeffrafter-resource_controller-0.5.5 test/db/migrate/001_create_posts.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/test/db/migrate/001_create_posts.rb
korin-resource_controller-0.5.3 test/db/migrate/001_create_posts.rb
maser-resource_controller-0.6.6 test/db/migrate/001_create_posts.rb
nileshtrivedi-lp_resource_builder-0.5.1 test/db/migrate/001_create_posts.rb