Sha256: ff8b01766d465c0a82530baeb5dd7c42a5430675b143848a5730cbf4a4c94a73
Contents?: true
Size: 1.15 KB
Versions: 9
Compression:
Stored size: 1.15 KB
Contents
class CreateBranches < ActiveRecord::Migration[5.0] def self.up create_table :dhatu_branches do |t| t.string :title, null: false, limit: 256 t.string :address_1, null: true, limit: 256 t.string :address_2, null: true, limit: 256 t.string :address_3, null: true, limit: 256 t.string :email, null: true, limit: 256 t.string :landline, null: true, limit: 16 t.string :fax, null: true, limit: 16 t.string :mobile, null: true, limit: 16 t.string :facebook, null: true, limit: 256 t.string :twitter, null: true, limit: 256 t.string :google_plus, null: true, limit: 256 t.string :linked_in, null: true, limit: 256 t.string :youtube, null: true, limit: 256 t.string :instagram, null: true, limit: 256 t.string :tumblr, null: true, limit: 256 t.string :pinterest, null: true, limit: 256 t.string :blog, null: true, limit: 256 t.string :status, null: false, limit: 16 t.boolean :featured, default: false t.boolean :main_branch, default: false t.timestamps null: false end end def self.down drop_table :dhatu_branches end end
Version data entries
9 entries across 9 versions & 1 rubygems