OSDN Git Service

create provider
[pettanr/pettanr.git] / db / migrate / 20121111060613_create_providers.rb
diff --git a/db/migrate/20121111060613_create_providers.rb b/db/migrate/20121111060613_create_providers.rb
new file mode 100644 (file)
index 0000000..0a86e6a
--- /dev/null
@@ -0,0 +1,14 @@
+class CreateProviders < ActiveRecord::Migration
+  def change
+    create_table :providers do |t|
+      t.integer :provider_status_id, :null => false, :default => 0
+      t.string :name, :null => false, :limit => 50
+      t.string :caption, :null => false, :limit => 30
+      t.string :url, :null => false
+      t.string :description, :null => false
+      t.string :demander_url, :null => false
+
+      t.timestamps
+    end
+  end
+end