Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

datamapperに関するu-ichiのブックマーク (2)

  • DataMapper - DataMapper

    Page Moved DataMapper has moved. You will be redirected shortly. If you are not redirected properly, please click here.

  • ramaze-users.jp - DataMapper/マイグレーション

    DataMapperには、モデルクラスに定義したプロパティの情報から、テーブル構造を自動的に変更する機能がある。 DataMapper.auto_migrate! 全てのモデルクラスに対し、自動マイグレーションを行う。テーブル内のデータは破棄される。 DataMapper.auto_upgrade! 全てのモデルクラスに対し、テーブル内のデータを保存したまま、自動マイグレーションを行う。 特定のモデルごとに自動マイグレーションを行うこともできる。 Rails(ActiveRecord)と同様に、マイグレーションごとのファイルを用意する方法。 例:まず、models.rbにモデルの定義があるとする。 class Person include DataMapper::Resource property :id, Integer, :serial => true property :name,

  • 1