Page Moved DataMapper has moved. You will be redirected shortly. If you are not redirected properly, please click here.
DataMapperには、モデルクラスに定義したプロパティの情報から、テーブル構造を自動的に変更する機能がある。 DataMapper.auto_migrate! 全てのモデルクラスに対し、自動マイグレーションを行う。テーブル内のデータは破棄される。 DataMapper.auto_upgrade! 全てのモデルクラスに対し、テーブル内のデータを保存したまま、自動マイグレーションを行う。 特定のモデルごとに自動マイグレーションを行うこともできる。 Rails(ActiveRecord)と同様に、マイグレーションごとのファイルを用意する方法。 例:まず、models.rbにモデルの定義があるとする。 class Person include DataMapper::Resource property :id, Integer, :serial => true property :name,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く