Sha256: b0e8fbcc5c22befd3b8b496bbb14054fd3630915679a248585a7334bfe207a6c

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

# This migration comes from jc_cms (originally 20121107220639)
class CreateLocations < ActiveRecord::Migration
  def up
    create_table :jc_cms_locations do |t|
      t.string :name, :null => false

      t.timestamps
    end
    JcCms::Location.create!(:name => :main)
  end

  def down
    drop_table :jc_cms_locations
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jc_cms-0.0.2 test/dummy/db/migrate/20121216213708_create_locations.jc_cms.rb
jc_cms-0.0.1 test/dummy/db/migrate/20121216213708_create_locations.jc_cms.rb