mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-06 07:22:25 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.binary (tcbi)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.binary :${1:title}${2:, :limit => ${3:2}.megabytes}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.boolean (tcb)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.boolean :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.date (tcda)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.date :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.datetime (tcdt)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.datetime :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.decimal (tcd)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.decimal :${1:title}${2:${3:, :precision => ${4:10}}${5:, :scale => ${6:2}}}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.float (tcf)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.float :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.integer (tci)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.integer :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.lock_version (tcl)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.integer :lock_version, :null => false, :default => 0
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.references (tcr)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.references :${1:taggable}${2:, :polymorphic => ${3:{ :default => '${4:Photo}' \}}}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.string (tcs)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.string :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.text (tct)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.text :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.time (tcti)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.time :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.timestamp (tcts)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.timestamp :${1:title}
|
||||
t.$0
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: t.
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: t.timestamps (tctss)
|
||||
## condition: "meta.rails.migration.create_table, meta.rails.migration.change_table"
|
||||
# --
|
||||
t.timestamps
|
||||
t.$0
|
||||
Reference in New Issue
Block a user