eucalypt
>= 0.9.0
>= 0.9.0
  • eucalypt
  • Installation
  • CLI
    • Core
      • Init
      • Launch
      • Console
      • Test
      • Version
      • Rake
      • Help (-H)
    • Generate
      • Controller
      • Helper
      • Model
      • Scaffold
    • Destroy
      • Controller
      • Helper
      • Model
      • Scaffold
    • Blog
      • Setup
      • Article
        • List
        • Generate
        • Destroy
        • Edit
          • Urltitle
          • Datetime
    • Migration
      • Blank
      • Types
      • Create
        • Table
      • Add
        • Index
        • Column
      • Drop
        • Table
        • Index
        • Column
      • Rename
        • Table
        • Index
        • Column
      • Change
        • Column
  • Features
    • Controllers
    • Helpers
    • Views
      • Layouts
      • Partials
    • Static data
    • Core application file
    • Configuration
      • Logging
      • Asset pipeline
        • Manifest asset files
      • Initializers
      • Database
    • Manifest accessor
    • Application path helpers
    • Blog environment
      • Articles
    • Rendering static files
    • Maintenance mode
Powered by GitBook
On this page
  • Command
  • Arguments
  • Options/flags
  • Examples
  1. CLI
  2. Migration
  3. Create

Table

Creates a table.

Command

$ eucalypt migration create table
# Alias/shortened
$ eucalypt m create table
$ eucalypt m create t

Arguments

  • [NAME] - The name of the table.

  • *[COLUMN:TYPE] - The columns/attributes for the database table, along with their types (argument can be empty).

Options/flags

  • --options alias -o (Possible values: [primary_key, id, temporary, force])

    Additional options for the table.

Examples

  • $ eucalypt m create table tweets

    Generates a new table with default options (and no columns).

  • $ eucalypt m create table tweets text:string likes:integer

    Generates a new table with default options (and two columns)

  • $ eucalypt m create table tweets -o temporary:true force:cascade

    Generates a new table which deletes dependent objects on deletion, and is a temporary table (and no columns).

PreviousCreateNextAdd

Last updated 6 years ago